Refactoring

This commit is contained in:
Julia Radzhabova
2023-12-01 12:28:30 +03:00
parent 7ff427a677
commit 053e195546
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);