diff app/controller/Proben.js @ 144:7b1140bd8b3d

Re-Added Kommentare
author Torsten Irländer <torsten.irlaender@intevation.de>
date Mon, 01 Jul 2013 10:15:00 +0200
parents 1fb79e16149f
children 26ac4c99f8c4
line wrap: on
line diff
--- a/app/controller/Proben.js	Fri Jun 28 11:16:44 2013 +0200
+++ b/app/controller/Proben.js	Mon Jul 01 10:15:00 2013 +0200
@@ -7,7 +7,8 @@
     stores: [
         'Proben',
         'Zusatzwerte',
-        'Probenzusatzwerte'
+        'Probenzusatzwerte',
+        'Kommentare'
     //    'Orte',
     //    'Messungen',
     ],
@@ -50,6 +51,13 @@
                 probeId: id
             }
         });
+        // Load Kommentare 
+        var kstore = this.getKommentareStore();
+        kstore.load({
+            params: {
+                probeId: id
+            }
+        });
         console.log("Loaded Probe with ID " + record.getId()); //outputs ID
     },
     createSuccess: function(form, record, operation) {

http://lada.wald.intevation.org