forked from 0x2620/pandora
fix #796 - preserve list selection on item reload
This commit is contained in:
parent
5110267971
commit
37cb5934a4
1 changed files with 5 additions and 8 deletions
|
@ -66,7 +66,6 @@ pandora.URL = (function() {
|
||||||
if (Ox.isEmpty(state)) {
|
if (Ox.isEmpty(state)) {
|
||||||
|
|
||||||
if (pandora.user.ui.showHome) {
|
if (pandora.user.ui.showHome) {
|
||||||
//Ox.print('*** showScreen via URL')
|
|
||||||
pandora.$ui.home = pandora.ui.home().showScreen();
|
pandora.$ui.home = pandora.ui.home().showScreen();
|
||||||
}
|
}
|
||||||
callback && callback();
|
callback && callback();
|
||||||
|
@ -123,14 +122,12 @@ pandora.URL = (function() {
|
||||||
set[!state.item ? 'listSort' : 'itemSort'] = state.sort;
|
set[!state.item ? 'listSort' : 'itemSort'] = state.sort;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state.find) {
|
|
||||||
if (!state.item) {
|
if (!state.item) {
|
||||||
|
if (state.find) {
|
||||||
set.find = state.find;
|
set.find = state.find;
|
||||||
}
|
} else if (!pandora.$ui.appPanel) {
|
||||||
} else {
|
// when loading results without find, clear find, so that
|
||||||
if (!pandora.$ui.appPanel) {
|
// removing a query and reloading works as expected
|
||||||
// on page load without find, clear find, so that
|
|
||||||
// removing query and reloading works as expected
|
|
||||||
set.find = pandora.site.user.ui.find;
|
set.find = pandora.site.user.ui.find;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue