Fix plugins
This commit is contained in:
parent
bc6653ef7f
commit
1449b92acc
|
@ -167,8 +167,9 @@ define([
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
setMode: function(mode) {
|
setMode: function(mode, api) {
|
||||||
this.appOptions = mode;
|
this.appOptions = mode;
|
||||||
|
this.api = api;
|
||||||
this.customPluginsComplete = !this.appOptions.canBrandingExt;
|
this.customPluginsComplete = !this.appOptions.canBrandingExt;
|
||||||
if (this.appOptions.canBrandingExt)
|
if (this.appOptions.canBrandingExt)
|
||||||
this.getAppCustomPlugins(this.configPlugins);
|
this.getAppCustomPlugins(this.configPlugins);
|
||||||
|
@ -514,7 +515,7 @@ define([
|
||||||
var pluginStore = this.getApplication().getCollection('Common.Collections.Plugins'),
|
var pluginStore = this.getApplication().getCollection('Common.Collections.Plugins'),
|
||||||
isEdit = me.appOptions.isEdit,
|
isEdit = me.appOptions.isEdit,
|
||||||
editor = me.editor,
|
editor = me.editor,
|
||||||
apiVersion = me.api.GetVersion();
|
apiVersion = me.api ? me.api.GetVersion() : undefined;
|
||||||
if ( pluginsdata instanceof Array ) {
|
if ( pluginsdata instanceof Array ) {
|
||||||
var arr = [], arrUI = [],
|
var arr = [], arrUI = [],
|
||||||
lang = me.appOptions.lang.split(/[\-_]/)[0];
|
lang = me.appOptions.lang.split(/[\-_]/)[0];
|
||||||
|
|
|
@ -562,6 +562,7 @@ define([
|
||||||
this.view.turnChanges(true);
|
this.view.turnChanges(true);
|
||||||
} else
|
} else
|
||||||
if ( this.appConfig.canReview ) {
|
if ( this.appConfig.canReview ) {
|
||||||
|
state = (state=='off') ? false : state; // support of prev. version (on/off)
|
||||||
if (!!global) {
|
if (!!global) {
|
||||||
this.api.asc_SetLocalTrackRevisions(null);
|
this.api.asc_SetLocalTrackRevisions(null);
|
||||||
this.api.asc_SetGlobalTrackRevisions(!!state);
|
this.api.asc_SetGlobalTrackRevisions(!!state);
|
||||||
|
|
Loading…
Reference in a new issue