Commit c1d2bb8eb10d8ba4fc6717631cac573ea854aac6
Exists in
FER_CR42
Merge branch 'amdadev_test' into FER_CR42
Showing
2 changed files
with
8 additions
and
3 deletions
Show diff stats
js/app/views/ColorMap.js
... | ... | @@ -21,11 +21,15 @@ Ext.define('amdaUI.ColorMap', { |
21 | 21 | init: function(config){ |
22 | 22 | var me = this; |
23 | 23 | var size = (typeof config !== "undefined" && config.size) ? config.size : '12'; |
24 | + var hideFieldLabel = true; | |
25 | + if (typeof config !== "undefined") { | |
26 | + hideFieldLabel = (config.hideFieldLabel !== false); | |
27 | + } | |
24 | 28 | Ext.apply(this,{ |
25 | 29 | xtype:'combobox', |
26 | 30 | name: (typeof config !== "undefined" && config.name) ? config.name:null, |
27 | - fieldLabel: 'Color Map <img amda_clicktip="colourMaps" style="vertical-align:bottom" src="js/resources/images/16x16/info_mini.png"', | |
28 | - store: new Ext.data.Store({ | |
31 | + fieldLabel: hideFieldLabel ? '' : 'Color Map <img amda_clicktip="colourMaps" style="vertical-align:bottom" src="js/resources/images/16x16/info_mini.png"', | |
32 | + store: new Ext.data.Store({ | |
29 | 33 | fields: ['key','name', 'iconUrl'], |
30 | 34 | data: me.data |
31 | 35 | }), |
... | ... | @@ -37,7 +41,7 @@ Ext.define('amdaUI.ColorMap', { |
37 | 41 | </div></tpl>', |
38 | 42 | editable: false, |
39 | 43 | queryMode: 'local', |
40 | - onValueChange: config.onValueChange, | |
44 | + onValueChange: (typeof config !== "undefined" && config.onValueChange) ? config.onValueChange : null, | |
41 | 45 | listeners: { |
42 | 46 | change: function (combo, newValue, oldValue, eOpts) { |
43 | 47 | var iconUrl=""; | ... | ... |
js/app/views/PlotComponents/PlotStandardForm.js
... | ... | @@ -441,6 +441,7 @@ Ext.define('amdaPlotComp.PlotStandardForm', { |
441 | 441 | xtype: 'colormap', |
442 | 442 | name: name, |
443 | 443 | size: 26, |
444 | + hideFieldLabel: false, | |
444 | 445 | onValueChange: function(name, newValue, oldValue) { |
445 | 446 | me.object.set(name, newValue); |
446 | 447 | if (onChange != null) | ... | ... |