Fix for bug fix #2677: Highlighting of current page in workspaces was not de-highligh...
authorErnesto Baschny <ernst@cron-it.de>
Sat, 24 Feb 2007 19:35:18 +0000 (19:35 +0000)
committerErnesto Baschny <ernst@cron-it.de>
Sat, 24 Feb 2007 19:35:18 +0000 (19:35 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2150 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/tree.js

index f53d126..b127329 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-02-24  Ernesto Baschny  <ernst@cron-it.de>
+
+       * Fix for bug fix #2677: Highlighting of current page in workspaces was not de-highlighting previous one
+
 2007-02-21  Ingmar Schlecht  <ingmar@typo3.org>
 
        * Release of TYPO3 4.1RC2
index 7c84cbc..6feba18 100755 (executable)
@@ -110,7 +110,11 @@ var Tree = {
 
                // Remove all items that are already highlighted
                obj = $(top.fsMod.navFrameHighlightedID[frameSetModule]);
-               if (obj) Element.removeClassName(obj, this.highlightClass);
+               if (obj) {
+                       var classes = $w(this.highlightClass);
+                       for (var i = 0; i < classes.length; i++)
+                               Element.removeClassName(obj, classes[i]);
+               }
 
                // Set the new item
                top.fsMod.navFrameHighlightedID[frameSetModule] = highlightID;