index: fix a URL controller bug, use DocPanel loading indication

This commit is contained in:
rolux 2012-07-03 23:42:12 +02:00
parent fab683a592
commit eac3168de0

View file

@ -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();
} }