Commit c0c20db160d666297729a1f69da1eb19b6af4759
1 parent
ac097a6f
Exists in
master
and in
9 other branches
Compatibility mode for old plot requests saved with a histogram
Showing
2 changed files
with
12 additions
and
0 deletions
Show diff stats
js/app/models/PlotObjects/PlotHistogram1DSerieObject.js
... | ... | @@ -29,6 +29,14 @@ Ext.define('amdaPlotObj.PlotHistogram1DSerieObject', { |
29 | 29 | |
30 | 30 | constructor: function(){ |
31 | 31 | var me = this; |
32 | + if (!arguments['histo1d-yaxis']) { | |
33 | + // Compatibility mode to support old saved requests | |
34 | + arguments['histo1d-yaxis'] = amdaDefaultValues.plot.histogram1D.histo1DyAxis; | |
35 | + } | |
36 | + if (!arguments['histo1d-style']) { | |
37 | + // Compatibility mode to support old saved requests | |
38 | + arguments['histo1d-style'] = amdaDefaultValues.plot.histogram1D.histo1DStyle; | |
39 | + } | |
32 | 40 | me.callParent(arguments); |
33 | 41 | }, |
34 | 42 | ... | ... |
js/app/models/PlotObjects/PlotHistogram2DSerieObject.js
... | ... | @@ -31,6 +31,10 @@ Ext.define('amdaPlotObj.PlotHistogram2DSerieObject', { |
31 | 31 | constructor: function(){ |
32 | 32 | var me = this; |
33 | 33 | me.callParent(arguments); |
34 | + if (!arguments['histo2d-yaxis']) { | |
35 | + // Compatibility mode to support old saved requests | |
36 | + arguments['histo2d-yaxis'] = amdaDefaultValues.plot.histogram2D.histo2DyAxis; | |
37 | + } | |
34 | 38 | }, |
35 | 39 | |
36 | 40 | setDefaultValues: function() | ... | ... |