comparison app/controller/grid/Status.js @ 1044:8e579acfe0b1

Set preselected messstelle in status editor.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 25 Feb 2016 10:39:17 +0100
parents 859e2e9859cd
children 0497693d5b74
comparison
equal deleted inserted replaced
1043:91f65b9cc2fb 1044:8e579acfe0b1
134 } else { 134 } else {
135 //create a new one 135 //create a new one
136 var record = Ext.create('Lada.model.Status', { 136 var record = Ext.create('Lada.model.Status', {
137 messungsId: button.up('statusgrid').recordId 137 messungsId: button.up('statusgrid').recordId
138 }); 138 });
139 if (Ext.data.StoreManager.get('messstellenFiltered').count() === 1) {
140 record.set('erzeuger', Ext.data.StoreManager.get('messstellenFiltered').getAt(0).get('id'));
141 }
139 } 142 }
140 143
141 //Set the Date 144 //Set the Date
142 record.set('datum', new Date()); 145 record.set('datum', new Date());
143 146

http://lada.wald.intevation.org