Commit fd6c7cd165b7d99d6064668c2493086d7dea5432
1 parent
a56f041d
Exists in
master
and in
109 other branches
delete not needed field is-plot
Showing
2 changed files
with
3 additions
and
6 deletions
Show diff stats
js/app/models/PlotObjects/PlotRequestObject.js
... | ... | @@ -31,8 +31,7 @@ Ext.define('amdaPlotObj.PlotRequestObject', { |
31 | 31 | {name: 'last-plotted-tab', type: 'int', defaultValue: 0}, |
32 | 32 | {name: 'last-tab-id', type: 'int', defaultValue: 0}, |
33 | 33 | {name: 'active-tab-id', type: 'int', defaultValue: 1}, |
34 | - {name: 'all-in-one', type: 'boolean', defaultValue: false}, | |
35 | - {name: 'is-plot', type: 'boolean', defaultValue: true} | |
34 | + {name: 'all-in-one', type: 'boolean', defaultValue: false} | |
36 | 35 | ], |
37 | 36 | |
38 | 37 | hasMany: { |
... | ... | @@ -156,7 +155,7 @@ Ext.define('amdaPlotObj.PlotRequestObject', { |
156 | 155 | |
157 | 156 | requestValues['tabs'] = []; |
158 | 157 | |
159 | - if (this.get('all-in-one') || this.get('is-plot')) { | |
158 | + if (this.get('all-in-one')) { | |
160 | 159 | this.tabs().each(function (tab, index) { |
161 | 160 | requestValues['tabs'][index] = tab.getJsonValues(); |
162 | 161 | }); |
... | ... |
js/app/views/PlotUI.js
... | ... | @@ -70,8 +70,6 @@ Ext.define('amdaUI.PlotUI', { |
70 | 70 | * save method called by Save button to launch the save process |
71 | 71 | */ |
72 | 72 | saveProcess : function(toRename) { |
73 | - this.object.set('is-plot', false); | |
74 | - | |
75 | 73 | var plotModule = myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.plot.id); |
76 | 74 | if (!plotModule) |
77 | 75 | return; |
... | ... | @@ -120,7 +118,7 @@ Ext.define('amdaUI.PlotUI', { |
120 | 118 | doPlot : function(){ |
121 | 119 | |
122 | 120 | this.updateObject(); |
123 | - this.object.set('is-plot', true); | |
121 | + this.object.set('all-in-one', true); | |
124 | 122 | this.object.set('last-plotted-tab', this.plotTabs.getSelectedTabId()); |
125 | 123 | var plotModule = myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.plot.id); |
126 | 124 | if (plotModule) |
... | ... |