diff app/controller/Sql.js @ 251:d79b3bab600c

Fixed filter names
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 24 Jul 2013 15:23:29 +0200
parents c5d7fae5997a
children 1bce2d59b7e9
line wrap: on
line diff
--- a/app/controller/Sql.js	Wed Jul 24 15:05:16 2013 +0200
+++ b/app/controller/Sql.js	Wed Jul 24 15:23:29 2013 +0200
@@ -67,8 +67,8 @@
         // Get search parameters:
         var searchParams = {};
         if (Ext.getCmp('search').getValue() == 1) {
-            var mst = Ext.getCmp('mst').getValue();
-            var uwb = Ext.getCmp('uwb').getValue();
+            var mst = Ext.getCmp('filter-mstId').getValue();
+            var uwb = Ext.getCmp('filter-umwId').getValue();
             if (mst !== null) {
                 searchParams['mstId'] = mst;
             }
@@ -77,9 +77,9 @@
             }
         } else {
             // Get date object an convert it into a timestamp (ms since epoch)
-            var datefield = Ext.getCmp('pbegin').getValue();
+            var datefield = Ext.getCmp('filter-pbegin').getValue();
             if (datefield !== null) {
-                var ts = Ext.getCmp('pbegin').getValue().getTime();
+                var ts = Ext.getCmp('filter-pbegin').getValue().getTime();
                 searchParams['begin'] = ts;
             }
         }

http://lada.wald.intevation.org