diff --git a/js/app/views/PlotComponents/PlotZoomPlug.js b/js/app/views/PlotComponents/PlotZoomPlug.js index 0c9b176..be9254e 100644 --- a/js/app/views/PlotComponents/PlotZoomPlug.js +++ b/js/app/views/PlotComponents/PlotZoomPlug.js @@ -131,7 +131,7 @@ Ext.define('amdaPlotComp.PlotZoomPlug', { */ show: function (interactiveId, zoomType, panelId, isPlotFunction_ = false) { this.isPlotFunction = isPlotFunction_; - if (!this.win) { + if (this.win) { this.close() }; this.win = new Ext.Window({ id: 'plot-zoom-win-' + this.hostCmp.ownerCt.getId(), // Plot window ID width: 250, @@ -163,7 +163,7 @@ Ext.define('amdaPlotComp.PlotZoomPlug', { this.win.on('destroy', this.onDestroy, this); Ext.PluginManager.register(this); - } + this.interactiveId = interactiveId; this.updateWinByType(zoomType, panelId); this.win.show(); @@ -437,7 +437,7 @@ Ext.define('amdaPlotComp.PlotZoomPlug', { ], fbar: [ { - text: me.isPlotFunction ? "Apply" : 'Apply Zoom', + text: me.isPlotFunction ? "Apply The Fct" : 'Apply Zoom', width: 100, scope: this, handler: function () { -- libgit2 0.21.2