incubator-ivy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xav...@apache.org
Subject svn commit: r491927 - /incubator/ivy/trunk/src/doc/xooki/xooki/xooki.js
Date Tue, 02 Jan 2007 20:25:19 GMT
Author: xavier
Date: Tue Jan  2 12:25:18 2007
New Revision: 491927

URL: http://svn.apache.org/viewvc?view=rev&rev=491927
Log:
upgrade to new xooki version: fix bug with urls with no file name

Modified:
    incubator/ivy/trunk/src/doc/xooki/xooki/xooki.js

Modified: incubator/ivy/trunk/src/doc/xooki/xooki/xooki.js
URL: http://svn.apache.org/viewvc/incubator/ivy/trunk/src/doc/xooki/xooki/xooki.js?view=diff&rev=491927&r1=491926&r2=491927
==============================================================================
--- incubator/ivy/trunk/src/doc/xooki/xooki/xooki.js (original)
+++ incubator/ivy/trunk/src/doc/xooki/xooki/xooki.js Tue Jan  2 12:25:18 2007
@@ -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) {



Mime
View raw message