Mercurial > lada > lada-client
comparison app/controller/MessungenGrid.js @ 579:50c05b1b085f
merged
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 10 Mar 2015 15:50:03 +0100 |
parents | 5af82dc8612d |
children | 4251601c6305 |
comparison
equal
deleted
inserted
replaced
578:bbe610be91cc | 579:50c05b1b085f |
---|---|
10 * Controller for a Messungengrid | 10 * Controller for a Messungengrid |
11 */ | 11 */ |
12 Ext.define('Lada.controller.MessungenGrid', { | 12 Ext.define('Lada.controller.MessungenGrid', { |
13 extend: 'Ext.app.Controller', | 13 extend: 'Ext.app.Controller', |
14 | 14 |
15 requires: [ | |
16 'Lada.view.window.MessungEdit' | |
17 ], | |
18 | |
15 init: function() { | 19 init: function() { |
16 this.control({ | 20 this.control({ |
17 'messungengrid': { | 21 'messungengrid': { |
18 selectionchange: this.selectionChanged, | 22 itemdblclick: this.open |
19 edit: this.gridSave | |
20 }, | |
21 'messungengrid button[action=open]': { | |
22 click: this.open | |
23 }, | 23 }, |
24 'messungengrid button[action=add]': { | 24 'messungengrid button[action=add]': { |
25 click: this.add | 25 click: this.add |
26 }, | 26 }, |
27 'messungengrid button[action=delete]': { | 27 'messungengrid button[action=delete]': { |
46 // TODO | 46 // TODO |
47 } | 47 } |
48 }); | 48 }); |
49 }, | 49 }, |
50 | 50 |
51 open: function() { | 51 open: function(grid, record) { |
52 //Opens a detailed view of the Messung | |
53 var win = Ext.create('Lada.view.window.MessungEdit', { | |
54 record: this.record | |
55 }); | |
56 win.show(); | |
57 win.initData(); | |
52 // todo | 58 // todo |
53 console.log('open'); | 59 console.log('opened window'); |
54 }, | 60 }, |
55 | 61 |
56 add: function() { | 62 add: function() { |
57 // todo | 63 // todo |
58 console.log('add'); | 64 console.log('add'); |