comparison app/controller/MessungenGrid.js @ 577:5af82dc8612d

Removed Detail Button from MessungenGrid, Added Operation in Messungengrid controller to open a detailed view after a doubleclick.
author Dustin Demuth <dustin@intevation.de>
date Tue, 10 Mar 2015 15:34:55 +0100
parents 8ebe4cfca4b8
children 4251601c6305
comparison
equal deleted inserted replaced
576:0d4137e0fe36 577:5af82dc8612d
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');

http://lada.wald.intevation.org