fix bug when submitting smart list query

This commit is contained in:
rolux 2014-01-17 14:19:53 +00:00
parent 75fddb14e1
commit 97cd4cb087

View file

@ -50,7 +50,7 @@ pandora.ui.filterForm = function(list) {
query: data.query query: data.query
}, function(result) { }, function(result) {
if (pandora.user.ui.updateAdvancedFindResults) { if (pandora.user.ui.updateAdvancedFindResults) {
that.updateResults(data.query); that.updateResults();
} }
}); });
} else if (pandora.user.ui.updateAdvancedFindResults) { } else if (pandora.user.ui.updateAdvancedFindResults) {
@ -62,7 +62,7 @@ pandora.ui.filterForm = function(list) {
); );
that.getList = that.$filter.getList; that.getList = that.$filter.getList;
}); });
that.updateResults = function(query) { that.updateResults = function() {
if (list) { if (list) {
Ox.Request.clearCache(list.id); Ox.Request.clearCache(list.id);
pandora.$ui.list pandora.$ui.list
@ -70,7 +70,7 @@ pandora.ui.filterForm = function(list) {
init: function(data) { init: function(data) {
pandora.$ui.folderList[ pandora.$ui.folderList[
pandora.getListData().folder pandora.getListData().folder
].value(list.id, 'query', query); ].value(list.id, 'query', that.$filter.options('query'));
} }
}) })
.reloadList(); .reloadList();