Mercurial > lada > lada-client
diff app/controller/grid/MKommentar.js @ 970:f4eb53ba63fc
Setting Timestamps the correct way. Before this commit the times of the instatiation of the model were used as default values, which led to wrong dates.
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Mon, 16 Nov 2015 11:48:15 +0100 |
parents | 1f1467713c3f |
children |
line wrap: on
line diff
--- a/app/controller/grid/MKommentar.js Thu Nov 12 17:38:57 2015 +0100 +++ b/app/controller/grid/MKommentar.js Mon Nov 16 11:48:15 2015 +0100 @@ -78,6 +78,7 @@ */ add: function(button) { var record = Ext.create('Lada.model.MKommentar'); + record.data.datum = new Date(); record.set('messungsId', button.up('mkommentargrid').recordId); button.up('mkommentargrid').store.insert(0, record); button.up('mkommentargrid').rowEditing.startEdit(0, 1);