Mercurial > lada > lada-client
diff app/controller/grid/Ort.js @ 643:477379250512
Open the ort create window on button click.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 17 Mar 2015 16:05:52 +0100 |
parents | e1ab24758392 |
children | 71e8b84d7829 |
line wrap: on
line diff
--- a/app/controller/grid/Ort.js Tue Mar 17 16:05:04 2015 +0100 +++ b/app/controller/grid/Ort.js Tue Mar 17 16:05:52 2015 +0100 @@ -35,9 +35,14 @@ win.initData(); }, - add: function() { - // todo - console.log('add'); + add: function(button) { + var probe = button.up('window').record; + var win = Ext.create('Lada.view.window.OrtCreate', { + record: probe, + grid: button.up('ortgrid') + }); + win.show(); + win.initData(); }, remove: function(button) {