[Lada-commits] [PATCH 1 of 6] Applied Patch which was presented in the Workshop: Sort Datenbasis differently

Wald Commits scm-commit at wald.intevation.org
Fri Jul 17 15:54:54 CEST 2015


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1437138158 -7200
# Node ID 8e3bc9d2ec4095fe021db6f9d03e276c37d9375c
# Parent  91334325149f947cad38524c9fbfbfa1d8643885
Applied Patch which was presented in the Workshop: Sort Datenbasis differently

diff -r 91334325149f -r 8e3bc9d2ec40 app/store/Datenbasis.js
--- 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
 });


More information about the Lada-commits mailing list