Commit 4ffe882f authored by Julia Radzhabova's avatar Julia Radzhabova

Fix Bug 33027.

parent a69dd755
...@@ -242,10 +242,10 @@ define([ ...@@ -242,10 +242,10 @@ define([
if (this._state.isOleObject) { if (this._state.isOleObject) {
var plugin = DE.getCollection('Common.Collections.Plugins').findWhere({guid: pluginGuid}); var plugin = DE.getCollection('Common.Collections.Plugins').findWhere({guid: pluginGuid});
this.btnEditObject.setDisabled(plugin===null || plugin ===undefined); this.btnEditObject.setDisabled(plugin===null || plugin ===undefined || this._locked);
} else { } else {
this.btnInsertFromUrl.setDisabled(pluginGuid===null); this.btnInsertFromUrl.setDisabled(pluginGuid===null || this._locked);
this.btnInsertFromFile.setDisabled(pluginGuid===null); this.btnInsertFromFile.setDisabled(pluginGuid===null || this._locked);
} }
} }
}, },
......
...@@ -181,10 +181,10 @@ define([ ...@@ -181,10 +181,10 @@ define([
if (this._state.isOleObject) { if (this._state.isOleObject) {
var plugin = PE.getCollection('Common.Collections.Plugins').findWhere({guid: pluginGuid}); var plugin = PE.getCollection('Common.Collections.Plugins').findWhere({guid: pluginGuid});
this.btnEditObject.setDisabled(plugin===null || plugin ===undefined); this.btnEditObject.setDisabled(plugin===null || plugin ===undefined || this._locked);
} else { } else {
this.btnInsertFromUrl.setDisabled(pluginGuid===null); this.btnInsertFromUrl.setDisabled(pluginGuid===null || this._locked);
this.btnInsertFromFile.setDisabled(pluginGuid===null); this.btnInsertFromFile.setDisabled(pluginGuid===null || this._locked);
} }
} }
}, },
......
...@@ -236,10 +236,10 @@ define([ ...@@ -236,10 +236,10 @@ define([
if (this._state.isOleObject) { if (this._state.isOleObject) {
var plugin = SSE.getCollection('Common.Collections.Plugins').findWhere({guid: pluginGuid}); var plugin = SSE.getCollection('Common.Collections.Plugins').findWhere({guid: pluginGuid});
this.btnEditObject.setDisabled(plugin===null || plugin ===undefined); this.btnEditObject.setDisabled(plugin===null || plugin ===undefined || this._locked);
} else { } else {
this.btnInsertFromUrl.setDisabled(pluginGuid===null); this.btnInsertFromUrl.setDisabled(pluginGuid===null || this._locked);
this.btnInsertFromFile.setDisabled(pluginGuid===null); this.btnInsertFromFile.setDisabled(pluginGuid===null || this._locked);
} }
} }
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment