comparison app/view/proben/List.js @ 239:f57b496b4caa

Added function to dynamically add columns to the probenlist.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 23 Jul 2013 11:30:03 +0200
parents 2a23fcca8ead
children c8c53f162a22
comparison
equal deleted inserted replaced
238:2a23fcca8ead 239:f57b496b4caa
36 ] 36 ]
37 } 37 }
38 ]; 38 ];
39 this.columns = []; 39 this.columns = [];
40 this.callParent(arguments); 40 this.callParent(arguments);
41 },
42 setupColumns: function(colnames) {
43 var cols = []
44 for (var i = colnames.length - 1; i >= 0; i--){
45 col = colnames[i];
46 for (var j = this.availableColumns.length - 1; j >= 0; j--){
47 defaultCol = this.availableColumns[j];
48 if (defaultCol.dataIndex === col) {
49 cols.push(this.availableColumns[j])
50 };
51 };
52 };
53 this.reconfigure(this.store, cols);
41 } 54 }
42 }); 55 });

http://lada.wald.intevation.org