changeset 242:c8c53f162a22

Iteratre the available cols in reverse order (begining from 0) to maintain the configured order of fields.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 23 Jul 2013 11:43:16 +0200 (2013-07-23)
parents 4ca858026191
children 331c77afdbcb
files app/view/proben/List.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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];

http://lada.wald.intevation.org