diff app/view/window/MessprogrammEdit.js @ 758:b2fcbdc4969d

Filled MessmethodenGrid with life.
author Dustin Demuth <dustin@intevation.de>
date Wed, 06 May 2015 16:24:23 +0200
parents b8502964f5c3
children
line wrap: on
line diff
--- a/app/view/window/MessprogrammEdit.js	Wed May 06 14:15:37 2015 +0200
+++ b/app/view/window/MessprogrammEdit.js	Wed May 06 16:24:23 2015 +0200
@@ -75,9 +75,8 @@
                 },
                 items: [{
                     xtype: 'messmethodengrid',
-                    flex: 1
-                }, {
-                    xtype: 'messmethodengrid',
+                    //recordId: null,
+                    recordId: this.record.get('id'),
                     flex: 1
                 }]
             }]
@@ -100,16 +99,8 @@
             success: function(record, response) {
                 this.down('messprogrammform').setRecord(record);
                 this.record = record;
-                owner = this.record.get('owner');
 
-                // If this would be A probe, it would be always
-                // allowed to add Messungen:
-                /*
-                if (owner) {
-                    me.enableAddMessungen();
-                }
-                */
-
+                //this.down('messmethodengrid').recordId = record.get('id');
                 var json = Ext.decode(response.response.responseText);
                 if (json) {
                     this.setMessages(json.errors, json.warnings);
@@ -137,7 +128,7 @@
     */
 
     disableChildren: function() {
-        // thera are no children....
+        // there are no children....
     },
 
     enableChildren: function() {

http://lada.wald.intevation.org