Commit d5cbbeebd9262e3f59a37e090fcaea5210a9a0fc
Exists in
master
and in
82 other branches
Merge branch 'develop' into amdadev
Showing
1 changed file
with
16 additions
and
6 deletions
Show diff stats
js/app/views/DownloadUI.js
@@ -271,7 +271,7 @@ Ext.define('amdaUI.DownloadUI', { | @@ -271,7 +271,7 @@ Ext.define('amdaUI.DownloadUI', { | ||
271 | this.object.set('timeformat', this.timeformatData[0][0]); | 271 | this.object.set('timeformat', this.timeformatData[0][0]); |
272 | 272 | ||
273 | if (!this.object.get('timeformatTT')) | 273 | if (!this.object.get('timeformatTT')) |
274 | - this.object.set('timeformatTT', this.timeformatTTData[0][0]); | 274 | + this.object.set('timeformatTT', this.timeformatData[0][0]); |
275 | 275 | ||
276 | if (!this.object.get('fileformat')) | 276 | if (!this.object.get('fileformat')) |
277 | this.object.set('fileformat', this.fileformatData[0][0]); | 277 | this.object.set('fileformat', this.fileformatData[0][0]); |
@@ -585,7 +585,7 @@ Ext.define('amdaUI.DownloadUI', { | @@ -585,7 +585,7 @@ Ext.define('amdaUI.DownloadUI', { | ||
585 | 585 | ||
586 | this.TTGrid.on('cellclick', this.actionItem, this); | 586 | this.TTGrid.on('cellclick', this.actionItem, this); |
587 | 587 | ||
588 | - var store = new Ext.data.ArrayStore({ | 588 | + var storeTimeFormat = new Ext.data.ArrayStore({ |
589 | fields: ['id', 'name', 'qtip'], | 589 | fields: ['id', 'name', 'qtip'], |
590 | data: this.timeformatData | 590 | data: this.timeformatData |
591 | }); | 591 | }); |
@@ -640,7 +640,7 @@ Ext.define('amdaUI.DownloadUI', { | @@ -640,7 +640,7 @@ Ext.define('amdaUI.DownloadUI', { | ||
640 | valueField: 'id', | 640 | valueField: 'id', |
641 | displayField: 'name', | 641 | displayField: 'name', |
642 | queryMode: 'local', | 642 | queryMode: 'local', |
643 | - store: store, | 643 | + store: storeTimeFormat, |
644 | listConfig: { | 644 | listConfig: { |
645 | tpl: [ | 645 | tpl: [ |
646 | '<tpl for=".">', | 646 | '<tpl for=".">', |
@@ -648,7 +648,7 @@ Ext.define('amdaUI.DownloadUI', { | @@ -648,7 +648,7 @@ Ext.define('amdaUI.DownloadUI', { | ||
648 | '</tpl>' | 648 | '</tpl>' |
649 | ] | 649 | ] |
650 | }, | 650 | }, |
651 | - value: store.first() | 651 | + value: storeTimeFormat.first() |
652 | }, | 652 | }, |
653 | { | 653 | { |
654 | fieldLabel: 'File Structure', | 654 | fieldLabel: 'File Structure', |
@@ -735,8 +735,18 @@ Ext.define('amdaUI.DownloadUI', { | @@ -735,8 +735,18 @@ Ext.define('amdaUI.DownloadUI', { | ||
735 | items: [{ | 735 | items: [{ |
736 | fieldLabel: 'Time Format', | 736 | fieldLabel: 'Time Format', |
737 | name: 'timeformatTT', | 737 | name: 'timeformatTT', |
738 | - store: this.timeformatTTData, | ||
739 | - value: this.timeformatTTData[0] | 738 | + valueField: 'id', |
739 | + store: storeTimeFormat, | ||
740 | + displayField: 'name', | ||
741 | + queryMode: 'local', | ||
742 | + listConfig: { | ||
743 | + tpl: [ | ||
744 | + '<tpl for=".">', | ||
745 | + '<li class="x-boundlist-item" data-qtip="{qtip}">{name}</li>', | ||
746 | + '</tpl>' | ||
747 | + ] | ||
748 | + }, | ||
749 | + value: storeTimeFormat.first() | ||
740 | }, | 750 | }, |
741 | { | 751 | { |
742 | fieldLabel: 'File Format ', | 752 | fieldLabel: 'File Format ', |