comparison app/controller/grid/Messmethode.js @ 972:24b5684d74d7

Set letzteAenderung in a Bunch of controllers.
author Dustin Demuth <dustin@intevation.de>
date Tue, 17 Nov 2015 14:58:17 +0100
parents d2ee6858f452
children 01f083db45b7
comparison
equal deleted inserted replaced
971:37f30b01788c 972:24b5684d74d7
248 /** 248 /**
249 * This function adds a new row 249 * This function adds a new row
250 */ 250 */
251 add: function(button) { 251 add: function(button) {
252 var record = Ext.create('Lada.model.MmtMessprogramm'); 252 var record = Ext.create('Lada.model.MmtMessprogramm');
253 if (!record.get('letzteAenderung')) {
254 record.data.letzteAenderung = new Date();
255 }
253 record.set('messprogrammId', button.up('messmethodengrid').recordId); 256 record.set('messprogrammId', button.up('messmethodengrid').recordId);
254 button.up('messmethodengrid').store.insert(0, record); 257 button.up('messmethodengrid').store.insert(0, record);
255 button.up('messmethodengrid').rowEditing.startEdit(0, 0); 258 button.up('messmethodengrid').rowEditing.startEdit(0, 0);
256 }, 259 },
257 260

http://lada.wald.intevation.org