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)
|
||||
Common.NotificationCenter.trigger('api:disconnect', true);
|
||||
Common.NotificationCenter.trigger('api:disconnect');
|
||||
var timer_sl = setInterval(function(){
|
||||
if (window.styles_loaded) {
|
||||
clearInterval(timer_sl);
|
||||
|
@ -968,7 +968,7 @@ define([
|
|||
me.updateThemeColors();
|
||||
toolbarController.activateControls();
|
||||
if (me.needToUpdateVersion)
|
||||
toolbarController.onApiCoAuthoringDisconnect(true);
|
||||
toolbarController.onApiCoAuthoringDisconnect();
|
||||
me.api.UpdateInterfaceState();
|
||||
me.fillTextArt(me.api.asc_getTextArtPreviews());
|
||||
|
||||
|
@ -1020,7 +1020,7 @@ define([
|
|||
}
|
||||
|
||||
this.disableEditing(true);
|
||||
Common.NotificationCenter.trigger('api:disconnect', true);
|
||||
Common.NotificationCenter.trigger('api:disconnect');
|
||||
|
||||
var value = Common.localStorage.getItem("de-license-warning");
|
||||
value = (value!==null) ? parseInt(value) : 0;
|
||||
|
|
|
@ -712,7 +712,7 @@ define([
|
|||
}
|
||||
|
||||
if (me.needToUpdateVersion)
|
||||
Common.NotificationCenter.trigger('api:disconnect', true);
|
||||
Common.NotificationCenter.trigger('api:disconnect');
|
||||
var timer_sl = setInterval(function(){
|
||||
if (window.styles_loaded) {
|
||||
clearInterval(timer_sl);
|
||||
|
@ -734,7 +734,7 @@ define([
|
|||
me.fillTextArt(me.api.asc_getTextArtPreviews());
|
||||
toolbarController.activateControls();
|
||||
if (me.needToUpdateVersion)
|
||||
toolbarController.onApiCoAuthoringDisconnect(true);
|
||||
toolbarController.onApiCoAuthoringDisconnect();
|
||||
me.api.UpdateInterfaceState();
|
||||
|
||||
Common.NotificationCenter.trigger('document:ready', 'main');
|
||||
|
@ -784,7 +784,7 @@ define([
|
|||
}
|
||||
|
||||
this.disableEditing(true);
|
||||
Common.NotificationCenter.trigger('api:disconnect', true);
|
||||
Common.NotificationCenter.trigger('api:disconnect');
|
||||
|
||||
var value = Common.localStorage.getItem("pe-license-warning");
|
||||
value = (value!==null) ? parseInt(value) : 0;
|
||||
|
|
|
@ -710,8 +710,8 @@ define([
|
|||
}
|
||||
|
||||
if (me.needToUpdateVersion) {
|
||||
Common.NotificationCenter.trigger('api:disconnect', true);
|
||||
toolbarController.onApiCoAuthoringDisconnect(true);
|
||||
Common.NotificationCenter.trigger('api:disconnect');
|
||||
toolbarController.onApiCoAuthoringDisconnect();
|
||||
}
|
||||
|
||||
var timer_sl = setInterval(function(){
|
||||
|
@ -746,7 +746,7 @@ define([
|
|||
formulasDlgController.setMode(me.appOptions).setApi(me.api);
|
||||
}
|
||||
if (me.needToUpdateVersion)
|
||||
toolbarController.onApiCoAuthoringDisconnect(true);
|
||||
toolbarController.onApiCoAuthoringDisconnect();
|
||||
|
||||
Common.NotificationCenter.trigger('document:ready', 'main');
|
||||
me.applyLicense();
|
||||
|
@ -811,7 +811,7 @@ define([
|
|||
}
|
||||
|
||||
this.disableEditing(true);
|
||||
Common.NotificationCenter.trigger('api:disconnect', true);
|
||||
Common.NotificationCenter.trigger('api:disconnect');
|
||||
|
||||
var value = Common.localStorage.getItem("sse-license-warning");
|
||||
value = (value!==null) ? parseInt(value) : 0;
|
||||
|
|
Loading…
Reference in a new issue