index.js: fix a bug related to navigatingg back to the home screen

This commit is contained in:
rolux 2012-07-04 00:35:42 +02:00
parent c600c250b0
commit a4ce29bff7

View file

@ -683,7 +683,7 @@ Ox.load(/^https?:\/\/(www\.)?oxjs\.org\//.test(
if (app.user.page != app.user.previousPage) {
app.$ui.panel.select(app.user.page);
}
app.$ui[url.page].options({selected: url.item});
url.page && app.$ui[url.page].options({selected: url.item});
if (!app.user.page || !app.user.previousPage) {
app.animate();
}