Commit 915febd362d8a94ff88a8afb3f37092e9fd9c6ac

Authored by vcephirins
1 parent 22609c36

RM7926 - Evol - Choix du format du temps dans les catalogues et TT

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 271 this.object.set('timeformat', this.timeformatData[0][0]);
272 272  
273 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 276 if (!this.object.get('fileformat'))
277 277 this.object.set('fileformat', this.fileformatData[0][0]);
... ... @@ -585,7 +585,7 @@ Ext.define('amdaUI.DownloadUI', {
585 585  
586 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 589 fields: ['id', 'name', 'qtip'],
590 590 data: this.timeformatData
591 591 });
... ... @@ -640,7 +640,7 @@ Ext.define('amdaUI.DownloadUI', {
640 640 valueField: 'id',
641 641 displayField: 'name',
642 642 queryMode: 'local',
643   - store: store,
  643 + store: storeTimeFormat,
644 644 listConfig: {
645 645 tpl: [
646 646 '<tpl for=".">',
... ... @@ -648,7 +648,7 @@ Ext.define(&#39;amdaUI.DownloadUI&#39;, {
648 648 '</tpl>'
649 649 ]
650 650 },
651   - value: store.first()
  651 + value: storeTimeFormat.first()
652 652 },
653 653 {
654 654 fieldLabel: 'File Structure',
... ... @@ -735,8 +735,18 @@ Ext.define(&#39;amdaUI.DownloadUI&#39;, {
735 735 items: [{
736 736 fieldLabel: 'Time Format',
737 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 752 fieldLabel: 'File Format ',
... ...