diff app/store/Datenbasis.js @ 873:8e3bc9d2ec40

Applied Patch which was presented in the Workshop: Sort Datenbasis differently
author Dustin Demuth <dustin@intevation.de>
date Fri, 17 Jul 2015 15:02:38 +0200
parents d47ee7439f44
children
line wrap: on
line diff
--- a/app/store/Datenbasis.js	Mon Jul 13 15:08:32 2015 +0200
+++ b/app/store/Datenbasis.js	Fri Jul 17 15:02:38 2015 +0200
@@ -12,14 +12,11 @@
 Ext.define('Lada.store.Datenbasis', {
     extend: 'Ext.data.Store',
     model: 'Lada.model.Datenbasis',
-    sorters: [{
-        property: 'datenbasis',
-        transform: function(val) {
-            if (val) {
-                return val.toLowerCase();
-            }
-            return '';
-        }
+    sorters: [
+        {
+            property: 'id',
+            direction: 'ASC'
     }],
-    autoLoad: true
+    autoLoad: true,
+    sortOnLoad: true
 });

http://lada.wald.intevation.org