Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
250:125e2d43cd0f | 251:d79b3bab600c |
---|---|
65 console.log('Loading store'); | 65 console.log('Loading store'); |
66 | 66 |
67 // Get search parameters: | 67 // Get search parameters: |
68 var searchParams = {}; | 68 var searchParams = {}; |
69 if (Ext.getCmp('search').getValue() == 1) { | 69 if (Ext.getCmp('search').getValue() == 1) { |
70 var mst = Ext.getCmp('mst').getValue(); | 70 var mst = Ext.getCmp('filter-mstId').getValue(); |
71 var uwb = Ext.getCmp('uwb').getValue(); | 71 var uwb = Ext.getCmp('filter-umwId').getValue(); |
72 if (mst !== null) { | 72 if (mst !== null) { |
73 searchParams['mstId'] = mst; | 73 searchParams['mstId'] = mst; |
74 } | 74 } |
75 if (uwb !== null) { | 75 if (uwb !== null) { |
76 searchParams['umwId'] = uwb; | 76 searchParams['umwId'] = uwb; |
77 } | 77 } |
78 } else { | 78 } else { |
79 // Get date object an convert it into a timestamp (ms since epoch) | 79 // Get date object an convert it into a timestamp (ms since epoch) |
80 var datefield = Ext.getCmp('pbegin').getValue(); | 80 var datefield = Ext.getCmp('filter-pbegin').getValue(); |
81 if (datefield !== null) { | 81 if (datefield !== null) { |
82 var ts = Ext.getCmp('pbegin').getValue().getTime(); | 82 var ts = Ext.getCmp('filter-pbegin').getValue().getTime(); |
83 searchParams['begin'] = ts; | 83 searchParams['begin'] = ts; |
84 } | 84 } |
85 } | 85 } |
86 result.getStore().load({ | 86 result.getStore().load({ |
87 params: searchParams | 87 params: searchParams |