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 2005/05/25 15:54:02 UTC

svn commit: r178441 - /lenya/trunk/src/webapp/lenya/resources/javascript/tree.js

Author: andreas
Date: Wed May 25 06:54:01 2005
New Revision: 178441

URL: http://svn.apache.org/viewcvs?rev=178441&view=rev
Log:
patch sitetree javascript to avoid error re. non-linked nodes

Modified:
    lenya/trunk/src/webapp/lenya/resources/javascript/tree.js

Modified: lenya/trunk/src/webapp/lenya/resources/javascript/tree.js
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/resources/javascript/tree.js?rev=178441&r1=178440&r2=178441&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/resources/javascript/tree.js (original)
+++ lenya/trunk/src/webapp/lenya/resources/javascript/tree.js Wed May 25 06:54:01 2005
@@ -1014,8 +1014,10 @@
     if (clickedDOMObj != null) {
         if (lastClicked != null) {
             var prevClickedDOMObj = getElById('itemTextLink'+lastClicked.id);
-            prevClickedDOMObj.style.color=lastClickedColor;
-            prevClickedDOMObj.style.backgroundColor=lastClickedBgColor;
+            if (prevClickedDOMObj) {
+                prevClickedDOMObj.style.color=lastClickedColor;
+                prevClickedDOMObj.style.backgroundColor=lastClickedBgColor;
+            }
         }
         
         lastClickedColor    = clickedDOMObj.style.color;



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