Fix license warning

This commit is contained in:
Julia Radzhabova 2019-02-12 10:59:32 +03:00
parent 8d6d66891a
commit 9ff8b33390
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

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