Mercurial > lada > lada-client
comparison app/controller/grid/Messung.js @ 622:ee92e352be20
Open messung create window on button click.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 16 Mar 2015 12:11:34 +0100 |
parents | 825973ca386f |
children | 71e8b84d7829 |
comparison
equal
deleted
inserted
replaced
621:c3c8a3be5117 | 622:ee92e352be20 |
---|---|
36 }); | 36 }); |
37 win.show(); | 37 win.show(); |
38 win.initData(); | 38 win.initData(); |
39 }, | 39 }, |
40 | 40 |
41 add: function() { | 41 add: function(button) { |
42 // TODO | 42 var probe = button.up('window').record; |
43 console.log('add'); | 43 var win = Ext.create('Lada.view.window.MessungCreate', { |
44 record: probe | |
45 }); | |
46 win.show(); | |
47 win.initData(); | |
44 }, | 48 }, |
45 | 49 |
46 remove: function(button) { | 50 remove: function(button) { |
47 var grid = button.up('grid'); | 51 var grid = button.up('grid'); |
48 var selection = grid.getView().getSelectionModel().getSelection()[0]; | 52 var selection = grid.getView().getSelectionModel().getSelection()[0]; |
57 }, | 61 }, |
58 failure: function() { | 62 failure: function() { |
59 } | 63 } |
60 }); | 64 }); |
61 } | 65 } |
62 }); | 66 } |
67 ); | |
63 } | 68 } |
64 }); | 69 }); |