[Lada-commits] [PATCH 4 of 9] Fixed button toggle on cancel edit
Wald Commits
scm-commit at wald.intevation.org
Thu Mar 10 10:15:35 CET 2016
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1457534291 -3600
# Node ID fa422d69940cddcae979d8b2776b9b500a9c0171
# Parent ce1928e6e8280529ff35546ba1aaf3126be5857e
Fixed button toggle on cancel edit.
diff -r ce1928e6e828 -r fa422d69940c app/controller/grid/Datensatzerzeuger.js
--- 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) {
diff -r ce1928e6e828 -r fa422d69940c app/controller/grid/MessprogrammKategorie.js
--- 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) {
diff -r ce1928e6e828 -r fa422d69940c app/controller/grid/Probenehmer.js
--- 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) {
More information about the Lada-commits
mailing list