[PE] Edit ole-objects.
This commit is contained in:
parent
a04a34f21a
commit
842f902712
|
@ -111,8 +111,8 @@ define([
|
||||||
}, this));
|
}, this));
|
||||||
this.btnInsertFromUrl.on('click', _.bind(this.insertFromUrl, this));
|
this.btnInsertFromUrl.on('click', _.bind(this.insertFromUrl, this));
|
||||||
this.btnEditObject.on('click', _.bind(function(btn){
|
this.btnEditObject.on('click', _.bind(function(btn){
|
||||||
// if (this.api) this.api.asc_pluginRun(this._originalProps.asc_getPluginGuid(), 0, this._originalProps.asc_getPluginData());
|
if (this.api) this.api.asc_pluginRun(this._originalProps.asc_getPluginGuid(), 0, this._originalProps.asc_getPluginData());
|
||||||
// this.fireEvent('editcomplete', this);
|
this.fireEvent('editcomplete', this);
|
||||||
}, this));
|
}, this));
|
||||||
$(this.el).on('click', '#image-advanced-link', _.bind(this.openAdvancedSettings, this));
|
$(this.el).on('click', '#image-advanced-link', _.bind(this.openAdvancedSettings, this));
|
||||||
},
|
},
|
||||||
|
@ -180,9 +180,8 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._state.isOleObject) {
|
if (this._state.isOleObject) {
|
||||||
// var plugin = DE.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.btnEditObject.setDisabled(true);
|
|
||||||
} else {
|
} else {
|
||||||
this.btnInsertFromUrl.setDisabled(pluginGuid===null);
|
this.btnInsertFromUrl.setDisabled(pluginGuid===null);
|
||||||
this.btnInsertFromFile.setDisabled(pluginGuid===null);
|
this.btnInsertFromFile.setDisabled(pluginGuid===null);
|
||||||
|
|
Loading…
Reference in a new issue