mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 09:22:26 +08:00
Refactoring
This commit is contained in:
@ -2203,7 +2203,7 @@ define([
|
||||
},
|
||||
|
||||
onTryUndoInFastCollaborative: function() {
|
||||
if (!window.localStorage.getBool("pe-hide-try-undoredo"))
|
||||
if (!Common.localStorage.getBool("pe-hide-try-undoredo"))
|
||||
Common.UI.info({
|
||||
width: 500,
|
||||
msg: this.appOptions.canChangeCoAuthoring ? this.textTryUndoRedo : this.textTryUndoRedoWarn,
|
||||
@ -2212,7 +2212,7 @@ define([
|
||||
primary: this.appOptions.canChangeCoAuthoring ? 'custom' : 'ok',
|
||||
dontshow: true,
|
||||
callback: _.bind(function(btn, dontshow){
|
||||
if (dontshow) window.localStorage.setItem("pe-hide-try-undoredo", 1);
|
||||
if (dontshow) Common.localStorage.setItem("pe-hide-try-undoredo", 1);
|
||||
if (btn == 'custom') {
|
||||
Common.localStorage.setItem("pe-settings-coauthmode", 0);
|
||||
this.api.asc_SetFastCollaborative(false);
|
||||
|
||||
@ -2938,7 +2938,7 @@ define([
|
||||
},
|
||||
|
||||
onTryUndoInFastCollaborative: function() {
|
||||
var val = window.localStorage.getItem("sse-hide-try-undoredo");
|
||||
var val = Common.localStorage.getItem("sse-hide-try-undoredo");
|
||||
if (!(val && parseInt(val) == 1))
|
||||
Common.UI.info({
|
||||
width: 500,
|
||||
@ -2948,7 +2948,7 @@ define([
|
||||
primary: this.appOptions.canChangeCoAuthoring ? 'custom' : 'ok',
|
||||
dontshow: true,
|
||||
callback: _.bind(function(btn, dontshow){
|
||||
if (dontshow) window.localStorage.setItem("sse-hide-try-undoredo", 1);
|
||||
if (dontshow) Common.localStorage.setItem("sse-hide-try-undoredo", 1);
|
||||
if (btn == 'custom') {
|
||||
Common.localStorage.setItem("sse-settings-coauthmode", 0);
|
||||
this.api.asc_SetFastCollaborative(false);
|
||||
|
||||
Reference in New Issue
Block a user