Mercurial > lada > lada-client
comparison app/controller/grid/Ortszuordnung.js @ 1314:8ace34d9352a
changed behaviour of ortserstellung window on save; fix update (form)
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Fri, 03 Feb 2017 11:08:44 +0100 |
parents | 1bcc3a62e909 |
children | 6edab3ee2198 |
comparison
equal
deleted
inserted
replaced
1313:c4ac1c09c0b0 | 1314:8ace34d9352a |
---|---|
170 */ | 170 */ |
171 cloneort: function(button) { | 171 cloneort: function(button) { |
172 var grid = button.up('ortszuordnungwindow').down('ortstammdatengrid').getView(); | 172 var grid = button.up('ortszuordnungwindow').down('ortstammdatengrid').getView(); |
173 var selected = grid.getSelectionModel().getSelection()[0]; | 173 var selected = grid.getSelectionModel().getSelection()[0]; |
174 var newRecord = Ext.create('Lada.model.Ort', selected.data); | 174 var newRecord = Ext.create('Lada.model.Ort', selected.data); |
175 newRecord.set('ortId', ''); | 175 newRecord.set('ortId', null); |
176 newRecord.set('id', null); | |
176 Ext.create('Lada.view.window.Ortserstellung', { | 177 Ext.create('Lada.view.window.Ortserstellung', { |
177 record: newRecord, | 178 record: newRecord, |
178 parentWindow: button.up('ortszuordnungwindow') | 179 parentWindow: button.up('ortszuordnungwindow') |
179 }).show(); | 180 }).show(); |
180 }, | 181 }, |