You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/02/14 15:13:09 UTC
svn commit: r507534 -
/lenya/trunk/src/modules/sitetree/resources/javascript/navtree.js
Author: andreas
Date: Wed Feb 14 06:13:08 2007
New Revision: 507534
URL: http://svn.apache.org/viewvc?view=rev&rev=507534
Log:
Avoid / as base path for sitetree fragment requests
Modified:
lenya/trunk/src/modules/sitetree/resources/javascript/navtree.js
Modified: lenya/trunk/src/modules/sitetree/resources/javascript/navtree.js
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/sitetree/resources/javascript/navtree.js?view=diff&rev=507534&r1=507533&r2=507534
==============================================================================
--- lenya/trunk/src/modules/sitetree/resources/javascript/navtree.js (original)
+++ lenya/trunk/src/modules/sitetree/resources/javascript/navtree.js Wed Feb 14 06:13:08 2007
@@ -54,9 +54,14 @@
return newItem;
}
+NavNode.prototype.getBasePath = function() {
+ var path = this.path != '/' ? this.path : '' ;
+ return path;
+}
+
NavNode.prototype.getLoadSubTreeURL = function() {
area = this.area;
- path = this.path;
+ var path = this.getBasePath();
return encodeURI(CONTEXT_PREFIX + '/' + PUBLICATION_ID + PIPELINE_PATH + '?area='+area+'&path='+path+'&language='+CHOSEN_LANGUAGE+'&areas='+ALL_AREAS+'&lenya.module=sitetree');
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org