Commit c1d2bb8eb10d8ba4fc6717631cac573ea854aac6

Authored by Erdogan Furkan
2 parents deb35db7 b350c87a
Exists in FER_CR42

Merge branch 'amdadev_test' into FER_CR42

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&nbsp;<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&nbsp;<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(&#39;amdaUI.ColorMap&#39;, {
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(&#39;amdaPlotComp.PlotStandardForm&#39;, {
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)
... ...