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