Mercurial > lada > lada-client
comparison app/controller/form/Ortserstellung.js @ 1355:d8db43ac9c12
fix: ortserstellung did load verwaltungsstore with only one entry
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Tue, 07 Feb 2017 16:50:16 +0100 |
parents | 02252ce0cf1e |
children | b96d98f0cb71 |
comparison
equal
deleted
inserted
replaced
1354:02252ce0cf1e | 1355:d8db43ac9c12 |
---|---|
56 record.set('id', null); | 56 record.set('id', null); |
57 record.set('netzbetreiberId', Lada.netzbetreiber[0]); | 57 record.set('netzbetreiberId', Lada.netzbetreiber[0]); |
58 record.save({ | 58 record.save({ |
59 success: function(newrecord, response) { | 59 success: function(newrecord, response) { |
60 form.loadRecord(newrecord); | 60 form.loadRecord(newrecord); |
61 me.down('verwaltungseinheit').store.load( | 61 me.down('verwaltungseinheit').store.clearFilter(); |
62 { id:newrecord.get('gemId') }); | 62 me.down('staat').store.clearFilter(); |
63 me.down('staat').store.load( | |
64 { id : newrecord.get('staat') }); | |
65 button.setDisabled(true); | 63 button.setDisabled(true); |
66 me.down('button[action=revert]').setDisabled(true); | 64 me.down('button[action=revert]').setDisabled(true); |
67 button.hide(); | 65 button.hide(); |
68 var ozw = me.up('window').parentWindow; | 66 var ozw = me.up('window').parentWindow; |
69 var json = Ext.decode(response.response.responseText); | 67 var json = Ext.decode(response.response.responseText); |