Commit e1b680c2f2d694579c933e90d7ef1ef6071c3819

Authored by Benjamin Renard
1 parent d70a8c72

Start collapsed in Catalog/TT list page (cf. #10829)

Showing 2 changed files with 6 additions and 5 deletions   Show diff stats
catalogTTList.html
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 <link rel="stylesheet" type="text/css" href="js/lib/ext/resources/css/ext-all.css"/> 6 <link rel="stylesheet" type="text/css" href="js/lib/ext/resources/css/ext-all.css"/>
7 <link rel="stylesheet" type="text/css" href="js/resources/css/amda.css"/> 7 <link rel="stylesheet" type="text/css" href="js/resources/css/amda.css"/>
8 <script type="text/javascript" src="js/lib/ext/ext-all.js"></script> 8 <script type="text/javascript" src="js/lib/ext/ext-all.js"></script>
9 - <script type="text/javascript" src="js/app/catalogTTList.js"></script> 9 + <script type="text/javascript" src="js/app/catalogTTList.js?t=1"></script>
10 </head> 10 </head>
11 11
12 <body background="js/resources/images/desktop/wallpapers/Cdpp2.jpg"/> 12 <body background="js/resources/images/desktop/wallpapers/Cdpp2.jpg"/>
js/app/catalogTTList.js
@@ -28,7 +28,8 @@ Ext.onReady(function () { @@ -28,7 +28,8 @@ Ext.onReady(function () {
28 } 28 }
29 }); 29 });
30 var presentationPanel = Ext.create('Ext.panel.Panel', { 30 var presentationPanel = Ext.create('Ext.panel.Panel', {
31 - height: 80, 31 + height: 80,
  32 + region: 'north',
32 layout:'hbox', 33 layout:'hbox',
33 bodyStyle: { background : '#dfe8f6'}, 34 bodyStyle: { background : '#dfe8f6'},
34 items:[ 35 items:[
@@ -63,16 +64,16 @@ Ext.onReady(function () { @@ -63,16 +64,16 @@ Ext.onReady(function () {
63 }); 64 });
64 var grid = Ext.create('Ext.grid.Panel', { 65 var grid = Ext.create('Ext.grid.Panel', {
65 xtype:'grouped-grid', 66 xtype:'grouped-grid',
  67 + region: 'center',
66 requires: [ 68 requires: [
67 'Ext.grid.feature.Grouping' 69 'Ext.grid.feature.Grouping'
68 ], 70 ],
69 - minHeight: 200,  
70 store: store, 71 store: store,
71 features: [{ 72 features: [{
72 ftype: 'grouping', 73 ftype: 'grouping',
73 groupHeaderTpl: '{columnName}: {name} ({rows.length} Item{[values.rows.length > 1 ? "s" : ""]})', 74 groupHeaderTpl: '{columnName}: {name} ({rows.length} Item{[values.rows.length > 1 ? "s" : ""]})',
74 hideGroupedHeader: true, 75 hideGroupedHeader: true,
75 - startCollapsed: false, 76 + startCollapsed: true,
76 id: 'typeGrouping' 77 id: 'typeGrouping'
77 }], 78 }],
78 columns: [ 79 columns: [
@@ -122,7 +123,7 @@ Ext.onReady(function () { @@ -122,7 +123,7 @@ Ext.onReady(function () {
122 closable:false, 123 closable:false,
123 autoScroll : true, 124 autoScroll : true,
124 maximizable: true, 125 maximizable: true,
125 - layout:'anchor', 126 + layout: 'border',
126 items: [ 127 items: [
127 presentationPanel, 128 presentationPanel,
128 grid 129 grid