Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
969:d4603049cd42 | 970:f4eb53ba63fc |
---|---|
65 /** | 65 /** |
66 * Initialise the Data of this Window | 66 * Initialise the Data of this Window |
67 */ | 67 */ |
68 initData: function() { | 68 initData: function() { |
69 var record = Ext.create('Lada.model.Probe'); | 69 var record = Ext.create('Lada.model.Probe'); |
70 record.data.probeentnahmeBeginn = new Date(); | |
71 record.data.probeentnahmeEnde = new Date(); | |
70 this.down('probeform').setRecord(record); | 72 this.down('probeform').setRecord(record); |
71 }, | 73 }, |
72 | 74 |
73 /** | 75 /** |
74 * Instructs the fields / forms listed in this method to set a message. | 76 * Instructs the fields / forms listed in this method to set a message. |