You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2012/11/09 17:54:59 UTC

svn commit: r1407541 - /myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tree.js

Author: lofwyr
Date: Fri Nov  9 16:54:59 2012
New Revision: 1407541

URL: http://svn.apache.org/viewvc?rev=1407541&view=rev
Log:
TOBAGO-1213: Action on a treeNode doesn't work (webkit)

Modified:
    myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tree.js

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tree.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tree.js?rev=1407541&r1=1407540&r2=1407541&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tree.js (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/tree.js Fri Nov  9 16:54:59 2012
@@ -388,14 +388,14 @@ TreeOldNode.prototype.toString = functio
       var treeItemClasses = "tree-item";
       var nodeWidth = "";  // given px width should only applyed in menu mode
       if (this.mode == "menu") {
-        treeItemClasses += " tree-menu-item"
+        treeItemClasses += " tree-menu-item";
         nodeWidth = 'style="width: ' + this.width + ';"';
       }
       str += '<div id="' + this.id + '" class="' + treeItemClasses + '" '
           + nodeWidth + '>';
       if (this.mode == "menu") {
         if (this.isFolder) {
-          // FIXME: change the icons when klick on the icon
+          // FIXME: change the icons when click on the icon
           str += '<img class="tobago-tree-menu-icon" id="' + this.id + '-menuIcon"'
               + 'src="' + (this.expanded ? this.treeResources.getImage("treeMenuOpen.gif") : this.treeResources.getImage("treeMenuClose.gif")) + ' " '
               + 'onclick="toggle(this.parentNode, \'' + this.treeHiddenId
@@ -476,7 +476,7 @@ TreeOldNode.prototype.toString = functio
           str += ' tabindex="' + this.tabIndex + "'";
         }
         str += ' href="' + Tobago.EMPTY_HREF +  '"'
-            + ' onclick="Tobago.TreeOld.onClick(this)"'
+            + ' onclick="this.onfocus(); Tobago.TreeOld.onClick(this)"'
             + ' ondblclick="Tobago.TreeOld.onDblClick(this)"'
             + ' onfocus="' + this.onfocus + '"';
       }