diff app/controller/Proben.js @ 157:237a4efe715a

Enabled loading Messungen.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 03 Jul 2013 12:27:36 +0200
parents 26ac4c99f8c4
children 82118c01bc52
line wrap: on
line diff
--- a/app/controller/Proben.js	Wed Jul 03 10:15:59 2013 +0200
+++ b/app/controller/Proben.js	Wed Jul 03 12:27:36 2013 +0200
@@ -9,8 +9,8 @@
         'Zusatzwerte',
         'Probenzusatzwerte',
         'Kommentare',
-        'Orte'
-    //    'Messungen',
+        'Orte',
+        'Messungen'
     ],
     init: function() {
         console.log('Initialising the Proben controller');
@@ -65,6 +65,13 @@
                 probeId: id
             }
         });
+        // Load Orte
+        var mstore = this.getMessungenStore();
+        mstore.load({
+            params: {
+                probeId: id
+            }
+        });
         console.log("Loaded Probe with ID " + record.getId()); //outputs ID
     },
     createSuccess: function(form, record, operation) {

http://lada.wald.intevation.org