Mercurial > lada > lada-client
diff app/controller/grid/Ortszuordnung.js @ 1013:75ce503ab296 stammdatengrids
Added a Ortszuordnungwindow and Form
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 26 Jan 2016 12:29:59 +0100 |
parents | 2adc329d90fe |
children | 6d33a84979e4 |
line wrap: on
line diff
--- a/app/controller/grid/Ortszuordnung.js Tue Jan 26 10:40:48 2016 +0100 +++ b/app/controller/grid/Ortszuordnung.js Tue Jan 26 12:29:59 2016 +0100 @@ -13,8 +13,7 @@ extend: 'Ext.app.Controller', requires: [ - 'Lada.view.window.OrtEdit', - 'Lada.view.window.OrtCreate' + 'Lada.view.window.Ortszuordnung', ], /** @@ -36,14 +35,14 @@ }, /** - * When open is called, a {@link Lada.view.window.OrtEdit} + * When open is called, a {@link Lada.view.window.Ortszuordnung} * is created which allows to edit the Orte */ open: function(grid, record) { var probe = grid.up('window').record; - var win = Ext.create('Lada.view.window.OrtEdit', { + var win = Ext.create('Lada.view.window.Ortszuordnung', { parentWindow: grid.up('window'), - probe: probe, + probe: grid.up('window').down('probeform').record, record: record, grid: grid }); @@ -56,8 +55,10 @@ */ add: function(button) { var probe = button.up('window').record; - var win = Ext.create('Lada.view.window.OrtCreate', { - record: probe, + var win = Ext.create('Lada.view.window.Ortszuordnung', { + parentWindow: button.up('window'), + probe: probe, + record: null, grid: button.up('ortszuordnung') }); win.show();