Mercurial > lada > lada-client
diff app/view/widget/DynamicGrid.js @ 1077:2a5d42045c63
Display Messungen query mode and use the new messung list grid.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 08 Apr 2016 19:33:46 +0200 |
parents | 981339d774b8 |
children | dbd435256f77 |
line wrap: on
line diff
--- a/app/view/widget/DynamicGrid.js Fri Apr 08 19:32:02 2016 +0200 +++ b/app/view/widget/DynamicGrid.js Fri Apr 08 19:33:46 2016 +0200 @@ -70,7 +70,7 @@ * @return an array of two arrays: [0] is an array of colums [1] an array * of fields **/ - generateColumnsAndFields: function(cols) { + generateColumnsAndFields: function(cols) { var resultColumns = []; var fields = []; @@ -103,13 +103,13 @@ }); for (var i = cols.length - 1; i >= 0; i--) { - if (cols[i] === 'id') { + fields.push(new Ext.data.Field({ + name: cols[i].dataIndex + })); + if (cols[i] === 'id' || cols[i].dataIndex === 'probeId') { continue; } resultColumns.push(cols[i]); - fields.push(new Ext.data.Field({ - name: cols[i].dataIndex - })); } var caf = new Array(); caf[0] = resultColumns;