diff app/view/proben/Edit.js @ 94:21c069e2ecdb

Added Orte to the Proben edit window
author Torsten Irländer <torsten.irlaender@intevation.de>
date Thu, 13 Jun 2013 14:24:18 +0200
parents 95b08b96f5c9
children 3552b0ee4526
line wrap: on
line diff
--- a/app/view/proben/Edit.js	Thu Jun 13 11:04:11 2013 +0200
+++ b/app/view/proben/Edit.js	Thu Jun 13 14:24:18 2013 +0200
@@ -19,7 +19,8 @@
         'Lada.view.widgets.Betriebsart',
         'Lada.view.widgets.Testdatensatz',
         'Lada.view.widgets.Netzbetreiber',
-        'Lada.view.kommentare.List'
+        'Lada.view.kommentare.List',
+        'Lada.view.orte.List'
     ],
 
     initComponent: function() {
@@ -37,6 +38,15 @@
                 //probe: record.data['probeId']
             }
         });
+        // Load Orte
+        var orte = form.down('ortelist');
+        var ostore = orte.getStore();
+        ostore.load({
+            params: {
+                probe: this.initialConfig['modelId']
+                //probe: record.data['probeId']
+            }
+        });
         this.items = [form];
         this.buttons = [
             {

http://lada.wald.intevation.org