[Lada-commits] [PATCH 8 of 9] Iteratre the available cols in reverse order (begining from 0) to maintain the
Wald Commits
scm-commit at wald.intevation.org
Tue Jul 23 11:46:36 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1374572596 -7200
# Node ID c8c53f162a22a1f4b13819d4f6ab86b2fe44229e
# Parent 4ca858026191df94728988a42ff11dc20ed41d19
Iteratre the available cols in reverse order (begining from 0) to maintain the
configured order of fields.
diff -r 4ca858026191 -r c8c53f162a22 app/view/proben/List.js
--- a/app/view/proben/List.js Tue Jul 23 11:31:47 2013 +0200
+++ b/app/view/proben/List.js Tue Jul 23 11:43:16 2013 +0200
@@ -41,7 +41,7 @@
},
setupColumns: function(colnames) {
var cols = []
- for (var i = colnames.length - 1; i >= 0; i--){
+ for (var i=0; i < colnames.length; i++) {
col = colnames[i];
for (var j = this.availableColumns.length - 1; j >= 0; j--){
defaultCol = this.availableColumns[j];
More information about the Lada-commits
mailing list