diff 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
line wrap: on
line diff
--- a/app/controller/grid/Messmethode.js	Tue May 12 14:53:54 2015 +0200
+++ b/app/controller/grid/Messmethode.js	Tue May 12 15:07:23 2015 +0200
@@ -22,7 +22,8 @@
             'messmethodengrid': {
                 edit: this.gridSave,
                 canceledit: this.cancelEdit,
-                select: this.selectRow
+                select: this.selectRow,
+                deselect: this.deselectRow
             },
             'messmethodengrid button[action=add]': {
                 click: this.add
@@ -147,6 +148,14 @@
     },
 
     /**
+     * Clear the nuklideGrid when a MMT Row is deselected
+     */
+    deselectRow: function(row, record, index){
+        var ngrid = row.view.up('window').down('nuklidegrid');
+        ngrid.initData();
+    },
+
+    /**
      * This function syncs the Messmethoden-Messgroessen Array
      * With the Nuklide Store.
      * It simply overwrites the Array

http://lada.wald.intevation.org