diff app.js @ 967:50d7b6e17525

Filter the selectable Messtellen in the statusgrid
author Dustin Demuth <dustin@intevation.de>
date Thu, 12 Nov 2015 14:51:25 +0100
parents a2c2039bb5d9
children fb99332bb48e
line wrap: on
line diff
--- a/app.js	Thu Nov 12 14:26:44 2015 +0100
+++ b/app.js	Thu Nov 12 14:51:25 2015 +0100
@@ -164,6 +164,16 @@
             storeId: 'statusstufe',
             autoLoad: 'true'
         });
+        //A Store containing all MST a User is allowed to set.
+        Ext.create('Lada.store.Messstellen', {
+            storeId: 'messstellenFiltered',
+            filters: function(item) {
+                if (Ext.Array.contains(Lada.mst, item.get('id'))) {
+                    return true;
+                }
+                return false;
+            }
+        });
     },
 
     getServerVersion: function() {

http://lada.wald.intevation.org