comparison 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
comparison
equal deleted inserted replaced
489:6056a7fd9aa2 490:446e99cfd425
29 scope: this, 29 scope: this,
30 'change': function (field, newv, oldv, opts) { 30 'change': function (field, newv, oldv, opts) {
31 if (field.up('window')) { 31 if (field.up('window')) {
32 field.up('window').down('fieldset').show(); 32 field.up('window').down('fieldset').show();
33 } 33 }
34 var orte = Ext.getStore('Ortedetails'); 34 var orte = Ext.getStore('StaOrte');
35 var ort = orte.getById(newv); 35 var ort = orte.getById(newv);
36 var fields = ['beschreibung', 'bezeichnung', 'hoeheLand', 36 var fields = ['beschreibung', 'bezeichnung', 'hoeheLand',
37 'latitude', 'longitude', 'staatId', 'gemId']; 37 'latitude', 'longitude', 'staatId', 'gemId'];
38 38
39 // Load currently "selected" verwaltungseinheit. This 39 // Load currently "selected" verwaltungseinheit. This
40 // is needed as without having this record the field 40 // is needed as without having this record the field
41 // would only display the raw value (id) of the 41 // would only display the raw value (id) of the
42 // verwaltungseinheit. 42 // verwaltungseinheit.
43 var verw = Ext.getStore('Verwaltungseinheiten'); 43 var verw = Ext.getStore('StaVerwaltungseinheiten');
44 if (ort) { 44 if (ort) {
45 verw.load({ 45 verw.load({
46 id: ort.get('gemId') 46 id: ort.get('gemId')
47 }); 47 });
48 } 48 }

http://lada.wald.intevation.org