bug 12688: fix a bug in listView widget that didn't pass correct filterBy object to loadBody().

This commit is contained in:
Jessica Wang 2012-04-16 14:57:10 -07:00
parent 662a234916
commit 2f36d60bde
1 changed files with 7 additions and 4 deletions

View File

@ -1295,13 +1295,16 @@
var context = $listView.data('view-args').context;
if (loadMoreData) {
page = page + 1;
page = page + 1;
loadBody($table, listViewData.dataProvider, listViewData.preFilter, listViewData.fields, true, {
context: context,
page: page,
filterBy: {
search: {},
kind: 'all'
filterBy: {
kind: $listView.find('select[id=filterBy]').length > 0? $listView.find('select[id=filterBy]').val(): 'all',
search: {
value: $listView.find('input[type=text]').length > 0? $listView.find('input[type=text]').val(): '',
by: 'name'
}
}
}, actions, {
reorder: listViewData.reorder