[Lada-commits] [PATCH 08 of 11] Fixed filter names
Wald Commits
scm-commit at wald.intevation.org
Wed Jul 24 15:28:04 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1374672209 -7200
# Node ID d79b3bab600cfb956f3b1066bd9a716bfc3292af
# Parent 125e2d43cd0f8c6ded7e20ecb2694a8b239e0743
Fixed filter names
diff -r 125e2d43cd0f -r d79b3bab600c app/controller/Sql.js
--- 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;
}
}
More information about the Lada-commits
mailing list