Mercurial > lada > lada-client
comparison app/controller/grid/Ortszuordnung.js @ 1342:d5e270fa91e4
fix: Ortserstellung for Staaten and validity check triggers
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Mon, 06 Feb 2017 09:59:03 +0100 |
parents | af169bcb67df |
children | 195c5d9b234b |
comparison
equal
deleted
inserted
replaced
1341:2e8eba3918b1 | 1342:d5e270fa91e4 |
---|---|
317 }).show(); | 317 }).show(); |
318 }, | 318 }, |
319 | 319 |
320 selectedStaat: function(grid, record) { | 320 selectedStaat: function(grid, record) { |
321 var win = grid.up('window'); | 321 var win = grid.up('window'); |
322 var panel = this.searchField.up('panel').up('window'); | |
322 win.hide(); | 323 win.hide(); |
323 this.searchField.reset(); | 324 this.searchField.reset(); |
324 Ext.create('Lada.view.window.Ortserstellung', { | 325 Ext.create('Lada.view.window.Ortserstellung', { |
325 record: Ext.create('Lada.model.Ort', { | 326 record: Ext.create('Lada.model.Ort', { |
326 staatId: record.get('id'), | 327 staatId: record.get('id'), |
328 kurztext: record.get('staat'), | 329 kurztext: record.get('staat'), |
329 langtext: record.get('staat'), | 330 langtext: record.get('staat'), |
330 berichtstext: record.get('staat'), | 331 berichtstext: record.get('staat'), |
331 ortTyp: 5 | 332 ortTyp: 5 |
332 }), | 333 }), |
333 parentWindow: win | 334 parentWindow: panel |
334 }).show(); | 335 }).show(); |
335 } | 336 } |
336 }); | 337 }); |