Fix Bug 35643.
This commit is contained in:
parent
e3800f11f8
commit
29d3515dfa
|
@ -288,8 +288,8 @@ define([
|
|||
});
|
||||
me.pluginDlg.show();
|
||||
}
|
||||
} else
|
||||
this.panelPlugins.openNotVisualMode(plugin.get_Guid());
|
||||
}
|
||||
this.panelPlugins.openedPluginMode(plugin.get_Guid());
|
||||
},
|
||||
|
||||
onPluginClose: function(plugin) {
|
||||
|
@ -297,9 +297,7 @@ define([
|
|||
this.pluginDlg.close();
|
||||
else if (this.panelPlugins.iframePlugin)
|
||||
this.panelPlugins.closeInsideMode();
|
||||
else {
|
||||
this.panelPlugins.closeNotVisualMode(plugin.get_Guid());
|
||||
}
|
||||
this.panelPlugins.closedPluginMode(plugin.get_Guid());
|
||||
},
|
||||
|
||||
onPluginResize: function(size, minSize, maxSize, callback ) {
|
||||
|
|
|
@ -162,7 +162,7 @@ define([
|
|||
split: modes && modes.length > 1,
|
||||
value: guid,
|
||||
hint: model.get('name')
|
||||
});
|
||||
});
|
||||
|
||||
var $slot = $('<span class="slot"></span>').appendTo(_group);
|
||||
btn.render($slot);
|
||||
|
@ -205,7 +205,7 @@ define([
|
|||
if (!this.iframePlugin) {
|
||||
this.iframePlugin = document.createElement("iframe");
|
||||
this.iframePlugin.id = 'plugin_iframe';
|
||||
this.iframePlugin.name = 'pluginFrameEditor',
|
||||
this.iframePlugin.name = 'pluginFrameEditor';
|
||||
this.iframePlugin.width = '100%';
|
||||
this.iframePlugin.height = '100%';
|
||||
this.iframePlugin.align = "top";
|
||||
|
@ -239,7 +239,7 @@ define([
|
|||
this.fireEvent('plugin:open', [this, 'onboard', 'close']);
|
||||
},
|
||||
|
||||
openNotVisualMode: function(pluginGuid) {
|
||||
openedPluginMode: function(pluginGuid) {
|
||||
// var rec = this.viewPluginsList.store.findWhere({guid: pluginGuid});
|
||||
// if ( rec ) {
|
||||
// this.viewPluginsList.cmpEl.find('#' + rec.get('id')).parent().addClass('selected');
|
||||
|
@ -248,16 +248,25 @@ define([
|
|||
var model = this.storePlugins.findWhere({guid: pluginGuid});
|
||||
if ( model ) {
|
||||
var _btn = model.get('button');
|
||||
_btn && _btn.toggle(true);
|
||||
if (_btn) {
|
||||
_btn.toggle(true);
|
||||
if (_btn.menu && _btn.menu.items.length>0) {
|
||||
_btn.menu.items[0].setCaption(this.textStop);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
closeNotVisualMode: function(guid) {
|
||||
closedPluginMode: function(guid) {
|
||||
// this.viewPluginsList.cmpEl.find('.selected').removeClass('selected');
|
||||
|
||||
var model = this.storePlugins.findWhere({guid: guid});
|
||||
if ( model ) {
|
||||
model.get('button').toggle(false);
|
||||
var _btn = model.get('button');
|
||||
_btn.toggle(false);
|
||||
if (_btn.menu && _btn.menu.items.length>0) {
|
||||
_btn.menu.items[0].setCaption(this.textStart);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -306,6 +315,7 @@ define([
|
|||
strPlugins: 'Plugins',
|
||||
textLoading: 'Loading',
|
||||
textStart: 'Start',
|
||||
textStop: 'Stop',
|
||||
groupCaption: 'Plugins'
|
||||
|
||||
}, Common.Views.Plugins || {}));
|
||||
|
|
|
@ -642,6 +642,7 @@ define([
|
|||
onPluginOpen: function(panel, type, action) {
|
||||
if ( type == 'onboard' ) {
|
||||
if ( action == 'open' ) {
|
||||
this.leftMenu.close();
|
||||
this.leftMenu.panelPlugins.show();
|
||||
this.leftMenu.onBtnMenuClick({pressed:true, options: {action: 'plugins'}});
|
||||
} else {
|
||||
|
|
|
@ -187,6 +187,7 @@
|
|||
"Common.Views.Plugins.strPlugins": "Plugins",
|
||||
"Common.Views.Plugins.textLoading": "Loading",
|
||||
"Common.Views.Plugins.textStart": "Start",
|
||||
"Common.Views.Plugins.textStop": "Stop",
|
||||
"Common.Views.RenameDialog.cancelButtonText": "Cancel",
|
||||
"Common.Views.RenameDialog.okButtonText": "Ok",
|
||||
"Common.Views.RenameDialog.textName": "File name",
|
||||
|
|
|
@ -530,6 +530,7 @@ define([
|
|||
onPluginOpen: function(panel, type, action) {
|
||||
if ( type == 'onboard' ) {
|
||||
if ( action == 'open' ) {
|
||||
this.leftMenu.close();
|
||||
this.leftMenu.btnThumbs.toggle(false, false);
|
||||
this.leftMenu.panelPlugins.show();
|
||||
this.leftMenu.onBtnMenuClick({pressed:true, options: {action: 'plugins'}});
|
||||
|
|
|
@ -120,6 +120,7 @@
|
|||
"Common.Views.Plugins.strPlugins": "Plugins",
|
||||
"Common.Views.Plugins.textLoading": "Loading",
|
||||
"Common.Views.Plugins.textStart": "Start",
|
||||
"Common.Views.Plugins.textStop": "Stop",
|
||||
"Common.Views.RenameDialog.cancelButtonText": "Cancel",
|
||||
"Common.Views.RenameDialog.okButtonText": "Ok",
|
||||
"Common.Views.RenameDialog.textName": "File name",
|
||||
|
|
|
@ -736,6 +736,7 @@ define([
|
|||
onPluginOpen: function(panel, type, action) {
|
||||
if ( type == 'onboard' ) {
|
||||
if ( action == 'open' ) {
|
||||
this.leftMenu.close();
|
||||
this.leftMenu.panelPlugins.show();
|
||||
this.leftMenu.onBtnMenuClick({pressed:true, options: {action: 'plugins'}});
|
||||
} else {
|
||||
|
|
|
@ -106,6 +106,7 @@
|
|||
"Common.Views.Plugins.strPlugins": "Plugins",
|
||||
"Common.Views.Plugins.textLoading": "Loading",
|
||||
"Common.Views.Plugins.textStart": "Start",
|
||||
"Common.Views.Plugins.textStop": "Stop",
|
||||
"Common.Views.RenameDialog.cancelButtonText": "Cancel",
|
||||
"Common.Views.RenameDialog.okButtonText": "Ok",
|
||||
"Common.Views.RenameDialog.textName": "File name",
|
||||
|
|
Loading…
Reference in a new issue