fix a regression where on page load, when item was set, a previous query that would not match the item would not be reset
This commit is contained in:
parent
c070cc0cf1
commit
910b67c1c1
1 changed files with 2 additions and 2 deletions
|
@ -147,12 +147,12 @@ pandora.URL = (function() {
|
||||||
$(this).trigger('stop');
|
$(this).trigger('stop');
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!pandora.$ui.appPanel && state.item && find) {
|
if (!pandora.$ui.appPanel && state.item && pandora.user.ui.find) {
|
||||||
// on page load, if item is set and there was a query,
|
// on page load, if item is set and there was a query,
|
||||||
// we have to check if the item actually matches the query,
|
// we have to check if the item actually matches the query,
|
||||||
// and otherwise reset find
|
// and otherwise reset find
|
||||||
pandora.api.find({
|
pandora.api.find({
|
||||||
query: find,
|
query: pandora.user.ui.find,
|
||||||
positions: [state.item],
|
positions: [state.item],
|
||||||
sort: [{key: 'id', operator: ''}]
|
sort: [{key: 'id', operator: ''}]
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
|
|
Loading…
Reference in a new issue