comparison app/controller/form/Messprogramm.js @ 1231:e8dd06450f2c

Two lines later we rely on having a specific field, dirty or not.
author Tom Gottfried <tom@intevation.de>
date Fri, 28 Oct 2016 19:17:46 +0200
parents 4270da0f7d3b
children 5824c4b329f4
comparison
equal deleted inserted replaced
1230:38599f18c863 1231:e8dd06450f2c
198 * On success it will reload the Store, 198 * On success it will reload the Store,
199 * on failure, it will display an Errormessage 199 * on failure, it will display an Errormessage
200 */ 200 */
201 save: function(button) { 201 save: function(button) {
202 var formPanel = button.up('form'); 202 var formPanel = button.up('form');
203 var data = formPanel.getForm().getFieldValues(true); 203 var data = formPanel.getForm().getFieldValues();
204 var orte = Ext.data.StoreManager.get('orte'); 204 var orte = Ext.data.StoreManager.get('orte');
205 var gemId = orte.getById(data['ortId']).get('gemId'); 205 var gemId = orte.getById(data['ortId']).get('gemId');
206 for (var key in data) { 206 for (var key in data) {
207 formPanel.getForm().getRecord().set(key, data[key]); 207 formPanel.getForm().getRecord().set(key, data[key]);
208 } 208 }

http://lada.wald.intevation.org