changeset 1059:fa422d69940c

Fixed button toggle on cancel edit.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 09 Mar 2016 15:38:11 +0100
parents ce1928e6e828
children 070255c0db28
files app/controller/grid/Datensatzerzeuger.js app/controller/grid/MessprogrammKategorie.js app/controller/grid/Probenehmer.js
diffstat 3 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/grid/Datensatzerzeuger.js	Wed Mar 09 15:13:21 2016 +0100
+++ b/app/controller/grid/Datensatzerzeuger.js	Wed Mar 09 15:38:11 2016 +0100
@@ -142,6 +142,7 @@
         var grid = Ext.ComponentQuery.query('datensatzerzeugergrid')[0];
         if (!record) {
             grid.down('button[action=delete]').disable();
+            return;
         }
         if (record.get('readonly') ||
             rowModel.selected.items.length === 0) {
--- a/app/controller/grid/MessprogrammKategorie.js	Wed Mar 09 15:13:21 2016 +0100
+++ b/app/controller/grid/MessprogrammKategorie.js	Wed Mar 09 15:38:11 2016 +0100
@@ -138,6 +138,7 @@
         var grid = Ext.ComponentQuery.query('messprogrammkategoriegrid')[0];
         if (!record) {
             grid.down('button[action=delete]').disable();
+            return;
         }
         if (record.get('readonly') ||
             rowModel.selected.items.length === 0) {
--- a/app/controller/grid/Probenehmer.js	Wed Mar 09 15:13:21 2016 +0100
+++ b/app/controller/grid/Probenehmer.js	Wed Mar 09 15:38:11 2016 +0100
@@ -141,6 +141,7 @@
         var grid = Ext.ComponentQuery.query('probenehmergrid')[0];
         if (!record) {
             grid.down('button[action=delete]').disable();
+            return;
         }
         if (record.get('readonly') ||
             rowModel.selected.items.length === 0) {

http://lada.wald.intevation.org