You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2005/05/19 09:15:03 UTC
svn commit: r170886 -
/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/resources/javascript/navtree.js
Author: michi
Date: Thu May 19 00:15:01 2005
New Revision: 170886
URL: http://svn.apache.org/viewcvs?rev=170886&view=rev
Log:
thanks to Simon Litwan the problem with slashes has been fixed
Modified:
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/resources/javascript/navtree.js
Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/resources/javascript/navtree.js
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/resources/javascript/navtree.js?rev=170886&r1=170885&r2=170886&view=diff
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/resources/javascript/navtree.js (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/resources/javascript/navtree.js Thu May 19 00:15:01 2005
@@ -296,7 +296,8 @@
NavRoot.prototype.handleItemClick = function(item, event) {
if (!item.isprotected && item.root!=item) {
- href = CONTEXT_PREFIX+'/'+PUBLICATION_ID+"/info-"+item.area+"/"+item.href+"?lenya.usecase=info-overview&lenya.step=showscreen";
+ var itemhref = item.href.replace(/^\//, "");
+ href = CONTEXT_PREFIX+'/'+PUBLICATION_ID+"/info-"+item.area+"/"+itemhref+"?lenya.usecase=info-overview&lenya.step=showscreen";
window.location = href;
}
};
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org