Fixed bug with closing add-ons.
This commit is contained in:
parent
56b75be8c2
commit
c144db698e
|
@ -107,6 +107,7 @@ define([
|
||||||
this.pluginsPanel = $('#plugins-box');
|
this.pluginsPanel = $('#plugins-box');
|
||||||
this.pluginsMask = $('#plugins-mask');
|
this.pluginsMask = $('#plugins-mask');
|
||||||
this.currentPluginPanel = $('#current-plugin-box');
|
this.currentPluginPanel = $('#current-plugin-box');
|
||||||
|
this.currentPluginFrame = $('#current-plugin-frame');
|
||||||
|
|
||||||
this.pluginMenu = new Common.UI.Menu({
|
this.pluginMenu = new Common.UI.Menu({
|
||||||
menuAlign : 'tr-br',
|
menuAlign : 'tr-br',
|
||||||
|
@ -151,10 +152,10 @@ define([
|
||||||
this.iframePlugin.frameBorder = 0;
|
this.iframePlugin.frameBorder = 0;
|
||||||
this.iframePlugin.scrolling = "no";
|
this.iframePlugin.scrolling = "no";
|
||||||
this.iframePlugin.onload = _.bind(this._onLoad,this);
|
this.iframePlugin.onload = _.bind(this._onLoad,this);
|
||||||
$('#current-plugin-frame').append(this.iframePlugin);
|
this.currentPluginFrame.append(this.iframePlugin);
|
||||||
|
|
||||||
if (!this.loadMask)
|
if (!this.loadMask)
|
||||||
this.loadMask = new Common.UI.LoadMask({owner: $('#current-plugin-frame')});
|
this.loadMask = new Common.UI.LoadMask({owner: this.currentPluginFrame});
|
||||||
this.loadMask.setTitle(this.textLoading);
|
this.loadMask.setTitle(this.textLoading);
|
||||||
this.loadMask.show();
|
this.loadMask.show();
|
||||||
|
|
||||||
|
@ -164,7 +165,7 @@ define([
|
||||||
|
|
||||||
closeInsideMode: function() {
|
closeInsideMode: function() {
|
||||||
if (this.iframePlugin) {
|
if (this.iframePlugin) {
|
||||||
this.iframePlugin.remove();
|
this.currentPluginFrame.empty();
|
||||||
this.iframePlugin = null;
|
this.iframePlugin = null;
|
||||||
}
|
}
|
||||||
this.currentPluginPanel.toggleClass('hidden', true);
|
this.currentPluginPanel.toggleClass('hidden', true);
|
||||||
|
|
Loading…
Reference in a new issue