changeset 251:d79b3bab600c

Fixed filter names
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 24 Jul 2013 15:23:29 +0200
parents 125e2d43cd0f
children 1bce2d59b7e9
files app/controller/Sql.js
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
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