comparison app/controller/Orte.js @ 454:edb9dee114f8

Issue67: Always commit the form und not only if there has been changes to the ortedetails.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 13 Dec 2013 12:42:30 +0100
parents 12231f31c112
children debfcc7713e3
comparison
equal deleted inserted replaced
453:2b886fc38282 454:edb9dee114f8
120 // Get ID from new created ortdetail and set it to the ort 120 // Get ID from new created ortdetail and set it to the ort
121 var response = options.operations.create[0].store.proxy.reader.jsonData; 121 var response = options.operations.create[0].store.proxy.reader.jsonData;
122 form.model.set('ortId', response.ortId); 122 form.model.set('ortId', response.ortId);
123 } 123 }
124 ortidfield.setValue(ortid); 124 ortidfield.setValue(ortid);
125 form.commit();
126 }, 125 },
127 failure: function() { 126 failure: function() {
128 console.log('Error on saving Ortdetails'); 127 console.log('Error on saving Ortdetails');
129 } 128 }
130 }); 129 });
130 form.commit();
131 131
132 }, 132 },
133 addItem: function(button) { 133 addItem: function(button) {
134 console.log('Adding new Ort for Probe ' + button.probeId); 134 console.log('Adding new Ort for Probe ' + button.probeId);
135 var ort = Ext.create('Lada.model.Ort'); 135 var ort = Ext.create('Lada.model.Ort');

http://lada.wald.intevation.org