changeset 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 91334325149f
children 031b4431b1b8
files app/store/Datenbasis.js
diffstat 1 files changed, 6 insertions(+), 9 deletions(-) [+]
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