Mercurial > lada > lada-client
comparison app/controller/Sql.js @ 370:1179b3a1251b
Alway send filter parameters to proben service.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 16 Aug 2013 15:19:09 +0200 |
parents | cebed9ef8293 |
children | 832e3c8f9191 |
comparison
equal
deleted
inserted
replaced
369:cebed9ef8293 | 370:1179b3a1251b |
---|---|
122 var searchParams = {}; | 122 var searchParams = {}; |
123 searchParams['qid'] = search.getValue(); | 123 searchParams['qid'] = search.getValue(); |
124 for (var i = filters.items.length - 1; i >= 0; i--){ | 124 for (var i = filters.items.length - 1; i >= 0; i--){ |
125 var filter = filters.items.items[i]; | 125 var filter = filters.items.items[i]; |
126 var value = filter.getValue(); | 126 var value = filter.getValue(); |
127 if (value) { | 127 searchParams[filter.getName()] = filter.getValue(); |
128 searchParams[filter.getName()] = filter.getValue(); | |
129 } | |
130 } | 128 } |
131 console.log('Loading store with the following search params: ' + searchParams); | 129 console.log('Loading store with the following search params: ' + searchParams); |
132 result.getStore().load({ | 130 result.getStore().load({ |
133 params: searchParams | 131 params: searchParams |
134 }); | 132 }); |