[Lada-commits] [PATCH] Updated orte window in messprogramme to new orte model

Wald Commits scm-commit at wald.intevation.org
Mon Mar 7 11:19:53 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1457345989 -3600
# Node ID 65ea1c2a8c9854b637d28c936083bd6779c3b32a
# Parent  7e801af49eeb584f1034172c947eef45edefa18e
Updated orte window in messprogramme to new orte model.

diff -r 7e801af49eeb -r 65ea1c2a8c98 app/store/Orte.js
--- a/app/store/Orte.js	Wed Mar 02 12:59:15 2016 +0100
+++ b/app/store/Orte.js	Mon Mar 07 11:19:49 2016 +0100
@@ -13,7 +13,7 @@
     extend: 'Ext.data.Store',
     model: 'Lada.model.Ort',
     sorters: [{
-        property: 'bezeichnung'
+        property: 'gemId'
     }],
     autoLoad: true
 });
diff -r 7e801af49eeb -r 65ea1c2a8c98 app/view/panel/Map.js
--- a/app/view/panel/Map.js	Wed Mar 02 12:59:15 2016 +0100
+++ b/app/view/panel/Map.js	Mon Mar 07 11:19:49 2016 +0100
@@ -81,7 +81,7 @@
 
         if (!this.externalOrteStore) {
             this.locationStore = Ext.data.StoreManager.get('orte');
-            this.addLocations(locationStore);
+            this.addLocations(this.locationStore);
         }
     },
 
diff -r 7e801af49eeb -r 65ea1c2a8c98 app/view/widget/Location.js
--- a/app/view/widget/Location.js	Wed Mar 02 12:59:15 2016 +0100
+++ b/app/view/widget/Location.js	Mon Mar 07 11:19:49 2016 +0100
@@ -12,7 +12,7 @@
 Ext.define('Lada.view.widget.Location', {
     extend: 'Lada.view.widget.base.ComboBox',
     alias: 'widget.location',
-    displayField: 'bezeichnung',
+    displayField: 'ortId',
     valueField: 'id',
     emptyText: 'Wählen Sie einen Ort',
     // Enable filtering of comboboxes
@@ -23,9 +23,9 @@
     minChars: 0,
 
     initComponent: function() {
-        this.store = Ext.data.StoreManager.get('locations');
+        this.store = Ext.data.StoreManager.get('orte');
         if (!this.store) {
-            this.store = Ext.create('Lada.store.Locations');
+            this.store = Ext.create('Lada.store.Orte');
         }
         this.callParent(arguments);
     }


More information about the Lada-commits mailing list