Mercurial > lada > lada-client
diff app/view/proben/List.js @ 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 |
parents | f57b496b4caa |
children | 81aca4dd5f0c |
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];