comparison 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
comparison
equal deleted inserted replaced
495:649bf1d08531 496:d07e5086a64b
28 scope: this, 28 scope: this,
29 'change': function (field, newv, oldv, opts) { 29 'change': function (field, newv, oldv, opts) {
30 if (field.up('window')) { 30 if (field.up('window')) {
31 field.up('window').down('fieldset').show(); 31 field.up('window').down('fieldset').show();
32 } 32 }
33 var orte = Ext.getStore('StaOrte'); 33 var orte = Ext.data.StoreManager.get('staOrte');
34 var ort = orte.getById(newv); 34 var ort = orte.getById(newv);
35 var fields = [ 35 var fields = [
36 'beschreibung', 36 'beschreibung',
37 'bezeichnung', 37 'bezeichnung',
38 'hoeheLand', 38 'hoeheLand',
44 44
45 // Load currently "selected" verwaltungseinheit. This 45 // Load currently "selected" verwaltungseinheit. This
46 // is needed as without having this record the field 46 // is needed as without having this record the field
47 // would only display the raw value (id) of the 47 // would only display the raw value (id) of the
48 // verwaltungseinheit. 48 // verwaltungseinheit.
49 var verw = Ext.getStore('StaVerwaltungseinheiten'); 49 var verw =
50 Ext.data.StoreManager.get('staVerwaltungseinheiten');
50 if (ort) { 51 if (ort) {
51 verw.load({ 52 verw.load({
52 id: ort.get('gemId') 53 id: ort.get('gemId')
53 }); 54 });
54 } 55 }

http://lada.wald.intevation.org