You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by jo...@apache.org on 2006/02/09 10:34:54 UTC

svn commit: r376240 - /lenya/trunk/src/modules/sitetree/resources/javascript/tree.js

Author: josias
Date: Thu Feb  9 01:34:52 2006
New Revision: 376240

URL: http://svn.apache.org/viewcvs?rev=376240&view=rev
Log:
fixed bug: if a node's id starts with the id of one of its siblings, it was not highlighted in the tree of the site area.

Modified:
    lenya/trunk/src/modules/sitetree/resources/javascript/tree.js

Modified: lenya/trunk/src/modules/sitetree/resources/javascript/tree.js
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/modules/sitetree/resources/javascript/tree.js?rev=376240&r1=376239&r2=376240&view=diff
==============================================================================
--- lenya/trunk/src/modules/sitetree/resources/javascript/tree.js (original)
+++ lenya/trunk/src/modules/sitetree/resources/javascript/tree.js Thu Feb  9 01:34:52 2006
@@ -187,7 +187,7 @@
     var item = null;
     for (var itemid in this.items) {
         // see if the path starts with the next item id
-        if (path.indexOf(itemid) == 0) {
+        if (path.indexOf(itemid + '/') == 0 || path == itemid) {
             item = this.items[itemid];
             break;
         };



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org