diff --git a/js/app/views/ParameterUI.js b/js/app/views/ParameterUI.js index f9c57e4..6f9931e 100755 --- a/js/app/views/ParameterUI.js +++ b/js/app/views/ParameterUI.js @@ -428,16 +428,17 @@ Ext.define('amdaUI.ParameterUI', xtype:'component', width: 20 }, { + xtype : 'numberfield', itemId: 'formParamTimeStep', fieldLabel: 'Time Step (sec)*', labelAlign: 'top', allowBlank : false, blankText : 'Time Step is required', name : 'timestep', - regex : new RegExp('^[0-9]+$'), - regexText : 'Time Step has to be a numeric value', - width: 150, validateOnChange: false, + minValue : 0.001, + hideTrigger: true, + width: 150, + //validateOnChange: false, validateOnBlur: false }, { - xtype: 'textfield', itemId: 'formParamUnit', fieldLabel: 'Units', name : 'units', @@ -446,15 +447,13 @@ Ext.define('amdaUI.ParameterUI', { xtype:'component', width: 20 }, - { - xtype: 'textfield', + { itemId: 'formParamYTitle', fieldLabel: 'Y Title for Plot', name : 'ytitle', width: 150 }, { - xtype: 'textfield', itemId: 'formParamDescription', name: 'description', xtype: 'textarea', fieldLabel:'Description', diff --git a/js/app/views/SearchUI.js b/js/app/views/SearchUI.js index 8cb2285..7a5836e 100755 --- a/js/app/views/SearchUI.js +++ b/js/app/views/SearchUI.js @@ -480,8 +480,11 @@ Ext.define('amdaUI.SearchUI', }, { xtype: 'numberfield', name: 'sampling', - fieldLabel: 'Sampling Time Step (sec)*', minValue : 0, - labelAlign: 'top', hideTrigger: true, width: 165 + allowBlank : false, blankText : 'Time Step is required', + fieldLabel: 'Sampling Time Step (sec)*', minValue : 0.001, + labelAlign: 'top', hideTrigger: true, width: 165, + // validateOnChange: false, + validateOnBlur: false }, { xtype: 'component', width: 45 }, { @@ -490,9 +493,9 @@ Ext.define('amdaUI.SearchUI', labelAlign: 'top', hideTrigger : true, width: 165 }, { - xtype: 'textfield', + xtype: 'textarea', name: 'description', - xtype: 'textarea', fieldLabel:'Description', + fieldLabel:'Description', width: 375, height: 70, colspan: 3 } -- libgit2 0.21.2