diff --git a/js/app/views/DownloadUI.js b/js/app/views/DownloadUI.js index e8ca84e..a4a9c6b 100644 --- a/js/app/views/DownloadUI.js +++ b/js/app/views/DownloadUI.js @@ -271,7 +271,7 @@ Ext.define('amdaUI.DownloadUI', { this.object.set('timeformat', this.timeformatData[0][0]); if (!this.object.get('timeformatTT')) - this.object.set('timeformatTT', this.timeformatTTData[0][0]); + this.object.set('timeformatTT', this.timeformatData[0][0]); if (!this.object.get('fileformat')) this.object.set('fileformat', this.fileformatData[0][0]); @@ -585,7 +585,7 @@ Ext.define('amdaUI.DownloadUI', { this.TTGrid.on('cellclick', this.actionItem, this); - var store = new Ext.data.ArrayStore({ + var storeTimeFormat = new Ext.data.ArrayStore({ fields: ['id', 'name', 'qtip'], data: this.timeformatData }); @@ -640,7 +640,7 @@ Ext.define('amdaUI.DownloadUI', { valueField: 'id', displayField: 'name', queryMode: 'local', - store: store, + store: storeTimeFormat, listConfig: { tpl: [ '<tpl for=".">', @@ -648,7 +648,7 @@ Ext.define('amdaUI.DownloadUI', { '</tpl>' ] }, - value: store.first() + value: storeTimeFormat.first() }, { fieldLabel: 'File Structure', @@ -735,8 +735,18 @@ Ext.define('amdaUI.DownloadUI', { items: [{ fieldLabel: 'Time Format', name: 'timeformatTT', - store: this.timeformatTTData, - value: this.timeformatTTData[0] + valueField: 'id', + store: storeTimeFormat, + displayField: 'name', + queryMode: 'local', + listConfig: { + tpl: [ + '<tpl for=".">', + '<li class="x-boundlist-item" data-qtip="{qtip}">{name}</li>', + '</tpl>' + ] + }, + value: storeTimeFormat.first() }, { fieldLabel: 'File Format ', -- libgit2 0.21.2