index: fix a URL controller bug, use DocPanel loading indication
This commit is contained in:
parent
fab683a592
commit
eac3168de0
1 changed files with 2 additions and 3 deletions
3
index.js
3
index.js
|
@ -429,6 +429,7 @@ Ox.load(/^https?:\/\/(www\.)?oxjs\.org\//.test(
|
|||
replace: [app.re.code],
|
||||
results: app.data.testResults || null,
|
||||
selected: app.user.item.doc,
|
||||
showLoading: true,
|
||||
showTests: true
|
||||
})
|
||||
.bindEvent({
|
||||
|
@ -682,9 +683,7 @@ Ox.load(/^https?:\/\/(www\.)?oxjs\.org\//.test(
|
|||
if (app.user.page != app.user.previousPage) {
|
||||
app.$ui.panel.select(app.user.page);
|
||||
}
|
||||
if (url.item) {
|
||||
app.$ui[url.page].options({selected: url.item});
|
||||
}
|
||||
if (!app.user.page || !app.user.previousPage) {
|
||||
app.animate();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue