diff app/view/orte/CreateForm.js @ 490:446e99cfd425

Updated views and controllers using the new model and stores.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 31 Oct 2014 21:28:31 +0100
parents debfcc7713e3
children 850ccfe5f3c4
line wrap: on
line diff
--- a/app/view/orte/CreateForm.js	Fri Oct 31 21:11:25 2014 +0100
+++ b/app/view/orte/CreateForm.js	Fri Oct 31 21:28:31 2014 +0100
@@ -31,7 +31,7 @@
                         if (field.up('window')) {
                             field.up('window').down('fieldset').show();
                         }
-                        var orte = Ext.getStore('Ortedetails');
+                        var orte = Ext.getStore('StaOrte');
                         var ort = orte.getById(newv);
                         var fields = ['beschreibung', 'bezeichnung', 'hoeheLand',
                                       'latitude', 'longitude', 'staatId', 'gemId'];
@@ -40,7 +40,7 @@
                         // is needed as without having this record the field
                         // would only display the raw value (id) of the
                         // verwaltungseinheit.
-                        var verw = Ext.getStore('Verwaltungseinheiten');
+                        var verw = Ext.getStore('StaVerwaltungseinheiten');
                         if (ort) {
                             verw.load({
                                 id: ort.get('gemId')

http://lada.wald.intevation.org