Disable print/download when editing is disabled on document loading (changed file version, bad license)
This commit is contained in:
parent
c9e36352eb
commit
17857e0295
|
@ -949,7 +949,7 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
if (me.needToUpdateVersion)
|
if (me.needToUpdateVersion)
|
||||||
Common.NotificationCenter.trigger('api:disconnect', true);
|
Common.NotificationCenter.trigger('api:disconnect');
|
||||||
var timer_sl = setInterval(function(){
|
var timer_sl = setInterval(function(){
|
||||||
if (window.styles_loaded) {
|
if (window.styles_loaded) {
|
||||||
clearInterval(timer_sl);
|
clearInterval(timer_sl);
|
||||||
|
@ -968,7 +968,7 @@ define([
|
||||||
me.updateThemeColors();
|
me.updateThemeColors();
|
||||||
toolbarController.activateControls();
|
toolbarController.activateControls();
|
||||||
if (me.needToUpdateVersion)
|
if (me.needToUpdateVersion)
|
||||||
toolbarController.onApiCoAuthoringDisconnect(true);
|
toolbarController.onApiCoAuthoringDisconnect();
|
||||||
me.api.UpdateInterfaceState();
|
me.api.UpdateInterfaceState();
|
||||||
me.fillTextArt(me.api.asc_getTextArtPreviews());
|
me.fillTextArt(me.api.asc_getTextArtPreviews());
|
||||||
|
|
||||||
|
@ -1020,7 +1020,7 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
this.disableEditing(true);
|
this.disableEditing(true);
|
||||||
Common.NotificationCenter.trigger('api:disconnect', true);
|
Common.NotificationCenter.trigger('api:disconnect');
|
||||||
|
|
||||||
var value = Common.localStorage.getItem("de-license-warning");
|
var value = Common.localStorage.getItem("de-license-warning");
|
||||||
value = (value!==null) ? parseInt(value) : 0;
|
value = (value!==null) ? parseInt(value) : 0;
|
||||||
|
|
|
@ -712,7 +712,7 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
if (me.needToUpdateVersion)
|
if (me.needToUpdateVersion)
|
||||||
Common.NotificationCenter.trigger('api:disconnect', true);
|
Common.NotificationCenter.trigger('api:disconnect');
|
||||||
var timer_sl = setInterval(function(){
|
var timer_sl = setInterval(function(){
|
||||||
if (window.styles_loaded) {
|
if (window.styles_loaded) {
|
||||||
clearInterval(timer_sl);
|
clearInterval(timer_sl);
|
||||||
|
@ -734,7 +734,7 @@ define([
|
||||||
me.fillTextArt(me.api.asc_getTextArtPreviews());
|
me.fillTextArt(me.api.asc_getTextArtPreviews());
|
||||||
toolbarController.activateControls();
|
toolbarController.activateControls();
|
||||||
if (me.needToUpdateVersion)
|
if (me.needToUpdateVersion)
|
||||||
toolbarController.onApiCoAuthoringDisconnect(true);
|
toolbarController.onApiCoAuthoringDisconnect();
|
||||||
me.api.UpdateInterfaceState();
|
me.api.UpdateInterfaceState();
|
||||||
|
|
||||||
Common.NotificationCenter.trigger('document:ready', 'main');
|
Common.NotificationCenter.trigger('document:ready', 'main');
|
||||||
|
@ -784,7 +784,7 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
this.disableEditing(true);
|
this.disableEditing(true);
|
||||||
Common.NotificationCenter.trigger('api:disconnect', true);
|
Common.NotificationCenter.trigger('api:disconnect');
|
||||||
|
|
||||||
var value = Common.localStorage.getItem("pe-license-warning");
|
var value = Common.localStorage.getItem("pe-license-warning");
|
||||||
value = (value!==null) ? parseInt(value) : 0;
|
value = (value!==null) ? parseInt(value) : 0;
|
||||||
|
|
|
@ -710,8 +710,8 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
if (me.needToUpdateVersion) {
|
if (me.needToUpdateVersion) {
|
||||||
Common.NotificationCenter.trigger('api:disconnect', true);
|
Common.NotificationCenter.trigger('api:disconnect');
|
||||||
toolbarController.onApiCoAuthoringDisconnect(true);
|
toolbarController.onApiCoAuthoringDisconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
var timer_sl = setInterval(function(){
|
var timer_sl = setInterval(function(){
|
||||||
|
@ -746,7 +746,7 @@ define([
|
||||||
formulasDlgController.setMode(me.appOptions).setApi(me.api);
|
formulasDlgController.setMode(me.appOptions).setApi(me.api);
|
||||||
}
|
}
|
||||||
if (me.needToUpdateVersion)
|
if (me.needToUpdateVersion)
|
||||||
toolbarController.onApiCoAuthoringDisconnect(true);
|
toolbarController.onApiCoAuthoringDisconnect();
|
||||||
|
|
||||||
Common.NotificationCenter.trigger('document:ready', 'main');
|
Common.NotificationCenter.trigger('document:ready', 'main');
|
||||||
me.applyLicense();
|
me.applyLicense();
|
||||||
|
@ -811,7 +811,7 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
this.disableEditing(true);
|
this.disableEditing(true);
|
||||||
Common.NotificationCenter.trigger('api:disconnect', true);
|
Common.NotificationCenter.trigger('api:disconnect');
|
||||||
|
|
||||||
var value = Common.localStorage.getItem("sse-license-warning");
|
var value = Common.localStorage.getItem("sse-license-warning");
|
||||||
value = (value!==null) ? parseInt(value) : 0;
|
value = (value!==null) ? parseInt(value) : 0;
|
||||||
|
|
Loading…
Reference in a new issue