Commit f401b3c764a0cb7b2ff50d5f923caa95bee87b52

Authored by Benjamin Renard
1 parent 248c452f

Fix

Showing 1 changed file with 7 additions and 3 deletions   Show diff stats
js/app/views/PlotTabResultUI.js
... ... @@ -158,15 +158,15 @@ Ext.define('amdaUI.PlotTabResultUI', {
158 158 scope: this
159 159 });
160 160 //plotFunction Menu
161   - me.contextualMenu.add({
162   - text: 'Appliquer une Transformation',
  161 + plotFunctionItem = {
  162 + text: 'Apply a Function on Interval',
163 163 handler: function (item, e) {
164 164 zoomPlugin.show(me.interactiveId, axis.id, panelContext.id, true);
165 165 zoomPlugin.resetMinMaxValue();
166 166 me.panelImage.startZoom(true, 0, size.height, onMinTimeSelection, onMaxTimeSelection);
167 167 },
168 168 scope: this
169   - });
  169 + };
170 170 insertIntervalItem = {
171 171 text: 'Insert Interval in TimeTable or Catalog',
172 172 handler: function (item, e) {
... ... @@ -218,6 +218,10 @@ Ext.define('amdaUI.PlotTabResultUI', {
218 218 me.contextualMenu.add('-');
219 219 me.contextualMenu.add(insertIntervalItem);
220 220 }
  221 + if (plotFunctionItem != null) {
  222 + me.contextualMenu.insert(0,'-');
  223 + me.contextualMenu.insert(0, plotFunctionItem);
  224 + }
221 225 },
222 226  
223 227 getAxisValue: function (axis, pixelMin, pixelMax, pixelVal) {
... ...