Mercurial > lada > lada-client
comparison app/view/window/Ortszuordnung.js @ 1134:f1d21e6a7449
Fixed adding new ortszuortnung for probe objects.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 25 May 2016 14:52:41 +0200 |
parents | df6d1a2cdd4a |
children | a3a715417540 |
comparison
equal
deleted
inserted
replaced
1133:df6d1a2cdd4a | 1134:f1d21e6a7449 |
---|---|
97 | 97 |
98 /** | 98 /** |
99 * Initialise the Data of this Window | 99 * Initialise the Data of this Window |
100 */ | 100 */ |
101 initData: function() { | 101 initData: function() { |
102 if (!this.record) { | |
103 this.record = Ext.create('Lada.model.Ortszuordnung'); | |
104 if (!this.record.get('letzteAenderung')) { | |
105 this.record.data.letzteAenderung = new Date(); | |
106 } | |
107 this.record.set('probeId', this.probe.get('id')); | |
108 } | |
102 this.down('ortszuordnungform').setRecord(this.record); | 109 this.down('ortszuordnungform').setRecord(this.record); |
103 this.down('ortpanel').setStore(); | 110 this.down('ortpanel').setStore(); |
104 }, | 111 }, |
105 | 112 |
106 /** | 113 /** |