Commenting in view mode: set autosave to true.
This commit is contained in:
parent
74f3f9f79a
commit
1aa34efab9
|
@ -318,10 +318,12 @@ define([
|
||||||
case '0': this.api.SetFontRenderingMode(3); break;
|
case '0': this.api.SetFontRenderingMode(3); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
value = Common.localStorage.getItem("de-settings-autosave");
|
if (this.mode.isEdit) {
|
||||||
this.api.asc_setAutoSaveGap(parseInt(value));
|
value = Common.localStorage.getItem("de-settings-autosave");
|
||||||
|
this.api.asc_setAutoSaveGap(parseInt(value));
|
||||||
|
|
||||||
this.api.asc_setSpellCheck(Common.localStorage.getBool("de-settings-spellcheck", true));
|
this.api.asc_setSpellCheck(Common.localStorage.getBool("de-settings-spellcheck", true));
|
||||||
|
}
|
||||||
|
|
||||||
value = Common.localStorage.getItem("de-settings-showsnaplines");
|
value = Common.localStorage.getItem("de-settings-showsnaplines");
|
||||||
this.api.put_ShowSnapLines(value===null || parseInt(value) == 1);
|
this.api.put_ShowSnapLines(value===null || parseInt(value) == 1);
|
||||||
|
|
|
@ -798,6 +798,7 @@ define([
|
||||||
} else if (!me.appOptions.isEdit && me.appOptions.canComments) {
|
} else if (!me.appOptions.isEdit && me.appOptions.canComments) {
|
||||||
me._state.fastCoauth = true;
|
me._state.fastCoauth = true;
|
||||||
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
|
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
|
||||||
|
me.api.asc_setAutoSaveGap(1);
|
||||||
} else {
|
} else {
|
||||||
me._state.fastCoauth = false;
|
me._state.fastCoauth = false;
|
||||||
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
|
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
|
||||||
|
|
|
@ -232,9 +232,6 @@ define([
|
||||||
var value = Common.localStorage.getItem("pe-settings-inputmode");
|
var value = Common.localStorage.getItem("pe-settings-inputmode");
|
||||||
this.api.SetTextBoxInputMode(parseInt(value) == 1);
|
this.api.SetTextBoxInputMode(parseInt(value) == 1);
|
||||||
|
|
||||||
value = Common.localStorage.getItem("pe-settings-spellcheck");
|
|
||||||
this.api.asc_setSpellCheck(parseInt(value) == 1);
|
|
||||||
|
|
||||||
/** coauthoring begin **/
|
/** coauthoring begin **/
|
||||||
if (this.mode.isEdit && !this.mode.isOffline && this.mode.canCoAuthoring) {
|
if (this.mode.isEdit && !this.mode.isOffline && this.mode.canCoAuthoring) {
|
||||||
value = Common.localStorage.getItem("pe-settings-coauthmode");
|
value = Common.localStorage.getItem("pe-settings-coauthmode");
|
||||||
|
@ -242,8 +239,13 @@ define([
|
||||||
}
|
}
|
||||||
/** coauthoring end **/
|
/** coauthoring end **/
|
||||||
|
|
||||||
value = Common.localStorage.getItem("pe-settings-autosave");
|
if (this.mode.isEdit) {
|
||||||
this.api.asc_setAutoSaveGap(parseInt(value));
|
value = Common.localStorage.getItem("pe-settings-autosave");
|
||||||
|
this.api.asc_setAutoSaveGap(parseInt(value));
|
||||||
|
|
||||||
|
value = Common.localStorage.getItem("pe-settings-spellcheck");
|
||||||
|
this.api.asc_setSpellCheck(parseInt(value) == 1);
|
||||||
|
}
|
||||||
|
|
||||||
this.api.put_ShowSnapLines( Common.localStorage.getBool("pe-settings-showsnaplines") );
|
this.api.put_ShowSnapLines( Common.localStorage.getBool("pe-settings-showsnaplines") );
|
||||||
|
|
||||||
|
|
|
@ -579,8 +579,10 @@ define([
|
||||||
value = 0; // use customization.autosave only when pe-settings-coauthmode and pe-settings-autosave are null
|
value = 0; // use customization.autosave only when pe-settings-coauthmode and pe-settings-autosave are null
|
||||||
}
|
}
|
||||||
me._state.fastCoauth = (value===null || parseInt(value) == 1);
|
me._state.fastCoauth = (value===null || parseInt(value) == 1);
|
||||||
} else
|
} else {
|
||||||
me._state.fastCoauth = (!me.appOptions.isEdit && me.appOptions.canComments);
|
me._state.fastCoauth = (!me.appOptions.isEdit && me.appOptions.canComments);
|
||||||
|
me._state.fastCoauth && me.api.asc_setAutoSaveGap(1);
|
||||||
|
}
|
||||||
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
|
me.api.asc_SetFastCollaborative(me._state.fastCoauth);
|
||||||
/** coauthoring end **/
|
/** coauthoring end **/
|
||||||
|
|
||||||
|
|
|
@ -266,8 +266,10 @@ define([
|
||||||
}
|
}
|
||||||
/** coauthoring end **/
|
/** coauthoring end **/
|
||||||
|
|
||||||
value = Common.localStorage.getItem("sse-settings-autosave");
|
if (this.mode.isEdit) {
|
||||||
this.api.asc_setAutoSaveGap(parseInt(value));
|
value = Common.localStorage.getItem("sse-settings-autosave");
|
||||||
|
this.api.asc_setAutoSaveGap(parseInt(value));
|
||||||
|
}
|
||||||
|
|
||||||
value = Common.localStorage.getItem("sse-settings-func-locale");
|
value = Common.localStorage.getItem("sse-settings-func-locale");
|
||||||
if (value) value = SSE.Views.FormulaLang.get(value);
|
if (value) value = SSE.Views.FormulaLang.get(value);
|
||||||
|
|
|
@ -557,8 +557,10 @@ define([
|
||||||
value = 0; // use customization.autosave only when sse-settings-coauthmode and sse-settings-autosave are null
|
value = 0; // use customization.autosave only when sse-settings-coauthmode and sse-settings-autosave are null
|
||||||
}
|
}
|
||||||
this._state.fastCoauth = (value===null || parseInt(value) == 1);
|
this._state.fastCoauth = (value===null || parseInt(value) == 1);
|
||||||
} else
|
} else {
|
||||||
this._state.fastCoauth = (!this.appOptions.isEdit && this.appOptions.canComments);
|
this._state.fastCoauth = (!this.appOptions.isEdit && this.appOptions.canComments);
|
||||||
|
this._state.fastCoauth && this.api.asc_setAutoSaveGap(1);
|
||||||
|
}
|
||||||
this.api.asc_SetFastCollaborative(this._state.fastCoauth);
|
this.api.asc_SetFastCollaborative(this._state.fastCoauth);
|
||||||
/** coauthoring end **/
|
/** coauthoring end **/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue