diff --git a/js/app/models/Download.js b/js/app/models/Download.js index 4b859c5..34b02e2 100644 --- a/js/app/models/Download.js +++ b/js/app/models/Download.js @@ -22,6 +22,7 @@ Ext.define('amdaModel.Download', { {name: 'refparamSampling', type: 'boolean', defaultValue: false}, {name: 'separateInfoFile', type: 'boolean', defaultValue: false}, {name: 'sampling', type: 'int', defaultValue: '600'}, + {name: 'scientificformat', type: 'boolean', defaultValue: false}, {name: 'fileprefix', type: 'string'}, {name: 'fileformat', type: 'string'}, {name: 'fileformatTT', type: 'string'}, @@ -29,7 +30,7 @@ Ext.define('amdaModel.Download', { {name: 'compressionTT', type: 'string'} ], - propertiesToCopy : 'id,name,downloadSrc,refparamSampling,separateInfoFile,sampling,list,timeformat,timeformatTT,structure,fileprefix,fileformat,fileformatTT,compression,compressionTT', + propertiesToCopy : 'id,name,downloadSrc,refparamSampling,separateInfoFile,sampling,scientificformat,list,timeformat,timeformatTT,structure,fileprefix,fileformat,fileformatTT,compression,compressionTT', getJsonValues : function(){ @@ -42,6 +43,7 @@ Ext.define('amdaModel.Download', { myValues.structure = this.get('structure'); myValues.refparamSampling = this.get('refparamSampling'); myValues.separateInfoFile = this.get('separateInfoFile'); + myValues.scientificformat = this.get('scientificformat'); myValues.sampling = this.get('sampling'); myValues.fileprefix = this.get('fileprefix'); diff --git a/js/app/views/DownloadUI.js b/js/app/views/DownloadUI.js index 44a3b28..a496a11 100644 --- a/js/app/views/DownloadUI.js +++ b/js/app/views/DownloadUI.js @@ -635,6 +635,11 @@ Ext.define('amdaUI.DownloadUI', { disabled: true }, { + xtype : 'checkbox', boxLabel: 'Scientific floating-point formatting', + boxLabelAlign: 'before', + name: 'scientificformat', checked: false + }, + { xtype: 'textfield', name: 'fileprefix', fieldLabel: 'File Prefix', disabled: false, editable: true -- libgit2 0.21.2