diff app/view/orte/CreateForm.js @ 496:d07e5086a64b

Moved stammdaten stores to app.js and load them via storemanager.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 06 Nov 2014 10:35:35 +0100
parents 850ccfe5f3c4
children 7c0653e8d9f7
line wrap: on
line diff
--- a/app/view/orte/CreateForm.js	Mon Nov 03 12:12:24 2014 +0100
+++ b/app/view/orte/CreateForm.js	Thu Nov 06 10:35:35 2014 +0100
@@ -30,7 +30,7 @@
                     if (field.up('window')) {
                         field.up('window').down('fieldset').show();
                     }
-                    var orte = Ext.getStore('StaOrte');
+                    var orte = Ext.data.StoreManager.get('staOrte');
                     var ort = orte.getById(newv);
                     var fields = [
                         'beschreibung',
@@ -46,7 +46,8 @@
                     // is needed as without having this record the field
                     // would only display the raw value (id) of the
                     // verwaltungseinheit.
-                    var verw = Ext.getStore('StaVerwaltungseinheiten');
+                    var verw =
+                        Ext.data.StoreManager.get('staVerwaltungseinheiten');
                     if (ort) {
                         verw.load({
                             id: ort.get('gemId')

http://lada.wald.intevation.org