diff app/view/window/ProbeCreate.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 8054232535ba
children
line wrap: on
line diff
--- a/app/view/window/ProbeCreate.js	Thu Nov 12 17:38:57 2015 +0100
+++ b/app/view/window/ProbeCreate.js	Mon Nov 16 11:48:15 2015 +0100
@@ -67,6 +67,8 @@
       */
     initData: function() {
         var record = Ext.create('Lada.model.Probe');
+        record.data.probeentnahmeBeginn = new Date();
+        record.data.probeentnahmeEnde = new Date();
         this.down('probeform').setRecord(record);
     },
 

http://lada.wald.intevation.org