forked from 0x2620/pandora
fix bug when submitting smart list query
This commit is contained in:
parent
75fddb14e1
commit
97cd4cb087
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue