From eac3168de04069f4aa1df7435e7a4182bee3b9a9 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 3 Jul 2012 23:42:12 +0200 Subject: [PATCH] index: fix a URL controller bug, use DocPanel loading indication --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index e4f37d0c..99482e0f 100644 --- a/index.js +++ b/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}); - } + app.$ui[url.page].options({selected: url.item}); if (!app.user.page || !app.user.previousPage) { app.animate(); }