diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index eacc26b69..d1a306fc5 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -1033,7 +1033,6 @@ define([ value = (value!==null) ? parseInt(value) : 0; var now = (new Date).getTime(); if (now - value > 86400000) { - Common.localStorage.setItem("de-license-warning", now); Common.UI.info({ width: 500, title: this.textNoLicenseTitle, @@ -1041,6 +1040,7 @@ define([ buttons: buttons, primary: primary, callback: function(btn) { + Common.localStorage.setItem("de-license-warning", now); if (btn == 'buynow') window.open('https://www.onlyoffice.com', "_blank"); else if (btn == 'contact') diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index eae5dcf03..3a75f5021 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -794,7 +794,6 @@ define([ value = (value!==null) ? parseInt(value) : 0; var now = (new Date).getTime(); if (now - value > 86400000) { - Common.localStorage.setItem("pe-license-warning", now); Common.UI.info({ width: 500, title: this.textNoLicenseTitle, @@ -802,6 +801,7 @@ define([ buttons: buttons, primary: primary, callback: function(btn) { + Common.localStorage.setItem("pe-license-warning", now); if (btn == 'buynow') window.open('https://www.onlyoffice.com', "_blank"); else if (btn == 'contact') diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 24d28e430..c79ac4422 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -825,7 +825,6 @@ define([ value = (value!==null) ? parseInt(value) : 0; var now = (new Date).getTime(); if (now - value > 86400000) { - Common.localStorage.setItem("sse-license-warning", now); Common.UI.info({ width: 500, title: this.textNoLicenseTitle, @@ -833,6 +832,7 @@ define([ buttons: buttons, primary: primary, callback: function(btn) { + Common.localStorage.setItem("sse-license-warning", now); if (btn == 'buynow') window.open('https://www.onlyoffice.com', "_blank"); else if (btn == 'contact')