upgrade to new xooki version: fix bug with urls with no file name
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/trunk/src/doc/xooki/xooki@491927 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/xooki.js b/xooki.js
index 248351a..1c8094d 100644
--- a/xooki.js
+++ b/xooki.js
@@ -710,7 +710,13 @@
}
})(xooki.toc, null, 0);
- var curPageId = new RegExp(".*\\/((?:.*\\/){"+xooki.config.level+"}[^\\/]*)(?:\\.\\w+)", "g").exec(window.location.toString())[1];
+ var match = new RegExp(".*\\/((?:.*\\/){"+xooki.config.level+"}[^\\/]*)(?:\\.\\w+)", "g").exec(window.location.toString());
+ var curPageId;
+ if (match == null || match[1] == '') {
+ curPageId = "index";
+ } else {
+ curPageId = match[1];
+ }
xooki.page = xooki.toc.pages[curPageId];
if (xooki.page == null) {