comparison app/controller/grid/Messmethode.js @ 768:380edfecac67

changes on the margins, erratic behaviour is not fixed
author Dustin Demuth <dustin@intevation.de>
date Tue, 12 May 2015 15:07:23 +0200
parents 5ee59111b188
children d2ee6858f452
comparison
equal deleted inserted replaced
767:5ee59111b188 768:380edfecac67
20 init: function() { 20 init: function() {
21 this.control({ 21 this.control({
22 'messmethodengrid': { 22 'messmethodengrid': {
23 edit: this.gridSave, 23 edit: this.gridSave,
24 canceledit: this.cancelEdit, 24 canceledit: this.cancelEdit,
25 select: this.selectRow 25 select: this.selectRow,
26 deselect: this.deselectRow
26 }, 27 },
27 'messmethodengrid button[action=add]': { 28 'messmethodengrid button[action=add]': {
28 click: this.add 29 click: this.add
29 }, 30 },
30 'messmethodengrid button[action=delete]': { 31 'messmethodengrid button[action=delete]': {
142 //Set Store 143 //Set Store
143 ngrid.setData(mmtmessgroessenstore); 144 ngrid.setData(mmtmessgroessenstore);
144 145
145 //Enable Editing 146 //Enable Editing
146 ngrid.setReadOnly(false); 147 ngrid.setReadOnly(false);
148 },
149
150 /**
151 * Clear the nuklideGrid when a MMT Row is deselected
152 */
153 deselectRow: function(row, record, index){
154 var ngrid = row.view.up('window').down('nuklidegrid');
155 ngrid.initData();
147 }, 156 },
148 157
149 /** 158 /**
150 * This function syncs the Messmethoden-Messgroessen Array 159 * This function syncs the Messmethoden-Messgroessen Array
151 * With the Nuklide Store. 160 * With the Nuklide Store.

http://lada.wald.intevation.org