diff app/store/Umwelt.js @ 738:2db5d54a5685

Fixed ToDo in Umweltbereiche Store, made Umweltbereiche Typable to fix the regression, Sorted Umweltbereiche by ID
author Dustin Demuth <dustin@intevation.de>
date Mon, 20 Apr 2015 12:24:54 +0200
parents d47ee7439f44
children d2ee6858f452
line wrap: on
line diff
--- a/app/store/Umwelt.js	Mon Apr 20 11:15:25 2015 +0200
+++ b/app/store/Umwelt.js	Mon Apr 20 12:24:54 2015 +0200
@@ -13,7 +13,11 @@
     extend: 'Ext.data.Store',
     model: 'Lada.model.Umwelt',
     sorters: [{
+        property: 'id',
+        direction: 'ASC'
+    }, {
         property: 'umweltBereich',
+        direction: 'ASC',
         transform: function(val) {
             if (val) {
                 return val.toLowerCase();
@@ -21,5 +25,7 @@
             return '';
         }
     }],
-    autoLoad: true
+    sortOnLoad: true,
+    remoteSort: false,
+    autoLoad: true,
 });

http://lada.wald.intevation.org