diff app/view/window/MessungEdit.js @ 824:fab0b7be5aca

add disbled remove button to all grids which relate to proben or messungen. Messprogramme-grids are untouched. BUG: When the last entry is deleted, the button remains active
author Dustin Demuth <dustin@intevation.de>
date Fri, 29 May 2015 14:23:03 +0200
parents baef70abfe71
children 613ad3263e59
line wrap: on
line diff
--- a/app/view/window/MessungEdit.js	Fri May 29 14:03:18 2015 +0200
+++ b/app/view/window/MessungEdit.js	Fri May 29 14:23:03 2015 +0200
@@ -168,14 +168,20 @@
 
     disableChildren: function() {
             this.down('fset[name=messwerte]').down('messwertgrid').setReadOnly(true);
+            this.down('fset[name=messwerte]').down('messwertgrid').readOnly = true;
             this.down('fset[name=messungstatus]').down('statusgrid').setReadOnly(true);
+            this.down('fset[name=messungstatus]').down('statusgrid').readOnly = true;
             this.down('fset[name=messungskommentare]').down('mkommentargrid').setReadOnly(true);
+            this.down('fset[name=messungskommentare]').down('mkommentargrid').readOnly = true;
     },
 
     enableChildren: function() {
             this.down('fset[name=messwerte]').down('messwertgrid').setReadOnly(false);
+            this.down('fset[name=messwerte]').down('messwertgrid').readOnly = false;
             this.down('fset[name=messungstatus]').down('statusgrid').setReadOnly(false);
+            this.down('fset[name=messungstatus]').down('statusgrid').readOnly = false;
             this.down('fset[name=messungskommentare]').down('mkommentargrid').setReadOnly(false);
+            this.down('fset[name=messungskommentare]').down('mkommentargrid').readOnly = false;
     },
 
     setMessages: function(errors, warnings) {

http://lada.wald.intevation.org