myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r378266 - /myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/tree2/resource/javascript/tree.js
Date Thu, 16 Feb 2006 15:04:12 GMT
Author: imario
Date: Thu Feb 16 07:04:10 2006
New Revision: 378266

URL: http://svn.apache.org/viewcvs?rev=378266&view=rev
Log:
PR: MYFACES-1002
Do not fail if a tree renderer didnt render a navigation image

Modified:
    myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/tree2/resource/javascript/tree.js

Modified: myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/tree2/resource/javascript/tree.js
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/tree2/resource/javascript/tree.js?rev=378266&r1=378265&r2=378266&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/tree2/resource/javascript/tree.js
(original)
+++ myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/tree2/resource/javascript/tree.js
Thu Feb 16 07:04:10 2006
@@ -9,8 +9,10 @@
         CookieLib.setCookieAttrib(cookieName, nodeId, "c");
     }
     navSpan.style.display = displayStyle;
-    var navImage = document.getElementById(navImageId);
-    if (navImage.src.indexOf(image1)>=0) navImage.src = image2; else navImage.src = image1;
+    if (navImageId != '') {
+        var navImage = document.getElementById(navImageId);
+        if (navImage.src.indexOf(image1)>=0) navImage.src = image2; else navImage.src
= image1;
+    }
     if (nodeImgId != '') {
         var nodeImg = document.getElementById(nodeImgId);
         if (nodeImg.src.indexOf(expandImg) >=0)



Mime
View raw message