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
5
index.js
5
index.js
|
@ -429,6 +429,7 @@ Ox.load(/^https?:\/\/(www\.)?oxjs\.org\//.test(
|
||||||
replace: [app.re.code],
|
replace: [app.re.code],
|
||||||
results: app.data.testResults || null,
|
results: app.data.testResults || null,
|
||||||
selected: app.user.item.doc,
|
selected: app.user.item.doc,
|
||||||
|
showLoading: true,
|
||||||
showTests: true
|
showTests: true
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
|
@ -682,9 +683,7 @@ Ox.load(/^https?:\/\/(www\.)?oxjs\.org\//.test(
|
||||||
if (app.user.page != app.user.previousPage) {
|
if (app.user.page != app.user.previousPage) {
|
||||||
app.$ui.panel.select(app.user.page);
|
app.$ui.panel.select(app.user.page);
|
||||||
}
|
}
|
||||||
if (url.item) {
|
app.$ui[url.page].options({selected: url.item});
|
||||||
app.$ui[url.page].options({selected: url.item});
|
|
||||||
}
|
|
||||||
if (!app.user.page || !app.user.previousPage) {
|
if (!app.user.page || !app.user.previousPage) {
|
||||||
app.animate();
|
app.animate();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue