Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
642:bd151c8b7ad1 | 643:477379250512 |
---|---|
33 }); | 33 }); |
34 win.show(); | 34 win.show(); |
35 win.initData(); | 35 win.initData(); |
36 }, | 36 }, |
37 | 37 |
38 add: function() { | 38 add: function(button) { |
39 // todo | 39 var probe = button.up('window').record; |
40 console.log('add'); | 40 var win = Ext.create('Lada.view.window.OrtCreate', { |
41 record: probe, | |
42 grid: button.up('ortgrid') | |
43 }); | |
44 win.show(); | |
45 win.initData(); | |
41 }, | 46 }, |
42 | 47 |
43 remove: function(button) { | 48 remove: function(button) { |
44 var grid = button.up('grid'); | 49 var grid = button.up('grid'); |
45 var selection = grid.getView().getSelectionModel().getSelection()[0]; | 50 var selection = grid.getView().getSelectionModel().getSelection()[0]; |