diff app/controller/Filter.js @ 1051:981339d774b8

merged stammdatengrids to default.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 01 Mar 2016 14:12:39 +0100
parents eacf25f071c0 1bd4c0709bd6
children 239e0ebb97e0
line wrap: on
line diff
--- a/app/controller/Filter.js	Mon Feb 29 15:10:17 2016 +0100
+++ b/app/controller/Filter.js	Tue Mar 01 14:12:39 2016 +0100
@@ -15,6 +15,8 @@
 
     requires: [
         'Lada.view.widget.Messstelle',
+        'Lada.view.grid.MessprogrammeList',
+        'Lada.view.grid.ProbeList',
         'Lada.view.window.FilterManagement',
         'Lada.view.widget.Umwelt'
     ],
@@ -147,7 +149,7 @@
                     resultGrid = Ext.create('Lada.view.grid.DatensatzErzeuger');
                     break;
                 case 'ort':
-                    resultGrid = Ext.create('Lada.view.grid.Orte');
+                    resultGrid = Ext.create('Lada.view.panel.Ort');
                     break;
                 case 'probenehmer':
                     resultGrid = Ext.create('Lada.view.grid.Probenehmer');
@@ -344,6 +346,11 @@
         if (store) {
             store.addListener('beforeload', this.loadingAnimationOn, resultGrid);
             store.addListener('load', this.loadingAnimationOff, resultGrid);
+            if (type === 'ort') {
+                var panel = resultGrid.up('ortpanel');
+                store.addListener('load', panel.down('map').addLocations, panel.down('map'));
+                panel.connectListeners();
+            }
 
             resultGrid.setStore(store);
             //TODO: Check if this is still necessary, as a Grid exists

http://lada.wald.intevation.org