<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,6 @@
 == 2.2.2 - 25 July 2009
 * Optimized performance of tree initialization (with initialState is collapsed)
+* TODO Added option 'clickableNodeNames' to make entire node name clickable to expand branch
 * Updated jQuery to version 1.3.2
 * Updated jQuery UI components to 1.7.2 (Core, Draggable, Droppable)
 </diff>
      <filename>treeTable/CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -209,6 +209,12 @@ $(document).ready(function()  {
       &lt;td&gt;Customize the prefix used for node classes.&lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt;
+      &lt;td&gt;&lt;tt&gt;clickableNodeNames&lt;/tt&gt;&lt;/td&gt;
+      &lt;td&gt;&lt;tt&gt;bool&lt;/tt&gt;&lt;/td&gt;
+      &lt;td&gt;&lt;tt&gt;false&lt;/tt&gt;&lt;/td&gt;
+      &lt;td&gt;Set to true to expand branches not only when expander icon is clicked but also when node name is clicked.&lt;/td&gt;
+    &lt;/tr&gt;
+    &lt;tr&gt;
       &lt;td&gt;&lt;tt&gt;expandable&lt;/tt&gt;&lt;/td&gt;
       &lt;td&gt;&lt;tt&gt;bool&lt;/tt&gt;&lt;/td&gt;
       &lt;td&gt;&lt;tt&gt;true&lt;/tt&gt;&lt;/td&gt;</diff>
      <filename>treeTable/doc/index.html</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-/* jQuery treeTable Plugin 2.2.2-dev - http://ludo.cubicphuse.nl/jquery-plugins/treeTable/ */
+/* jQuery treeTable Plugin 2.2.2 - http://ludo.cubicphuse.nl/jquery-plugins/treeTable/ */
 (function($) {
   // Helps to make options available to all functions
   // TODO: This gives problems when there are both expandable and non-expandable
@@ -22,6 +22,7 @@
   
   $.fn.treeTable.defaults = {
     childPrefix: &quot;child-of-&quot;,
+    clickableNodeNames: false,
     expandable: true,
     indent: 19,
     initialState: &quot;collapsed&quot;,
@@ -149,7 +150,17 @@
         if(options.expandable) {
           cell.prepend('&lt;span style=&quot;margin-left: -' + options.indent + 'px; padding-left: ' + options.indent + 'px&quot; class=&quot;expander&quot;&gt;&lt;/span&gt;');
           $(cell[0].firstChild).click(function() { node.toggleBranch(); });
-
+          
+          if(options.clickableNodeNames) {
+            $(cell).css('cursor', 'pointer');
+            $(cell).click(function(e) {
+              // Don't double-toggle if the click is on the existing expander icon
+              if (e.target.className != 'expander') {
+                node.toggleBranch();
+              }
+            });
+          }
+          
           // Check for a class set explicitly by the user, otherwise set the default class
           if(!(node.hasClass(&quot;expanded&quot;) || node.hasClass(&quot;collapsed&quot;))) {
             node.addClass(options.initialState);</diff>
      <filename>treeTable/src/javascripts/jquery.treeTable.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
-/* jQuery treeTable Plugin 2.2.2-dev - http://ludo.cubicphuse.nl/jquery-plugins/treeTable/ */
-(function($){var options;$.fn.treeTable=function(opts){options=$.extend({},$.fn.treeTable.defaults,opts);return this.each(function(){$(this).addClass(&quot;treeTable&quot;).find(&quot;tbody tr&quot;).each(function(){if(!options.expandable||$(this)[0].className.search(&quot;child-of-&quot;)==-1){initialize($(this));}});});};$.fn.treeTable.defaults={childPrefix:&quot;child-of-&quot;,drop_location:&quot;top&quot;,expandable:true,indent:19,initialState:&quot;collapsed&quot;,treeColumn:0};$.fn.collapse=function(){$(this).addClass(&quot;collapsed&quot;);childrenOf($(this)).each(function(){initialize($(this));if(!$(this).hasClass(&quot;collapsed&quot;)){$(this).collapse();}
+/* jQuery treeTable Plugin 2.2.2 - http://ludo.cubicphuse.nl/jquery-plugins/treeTable/ */
+(function($){var options;$.fn.treeTable=function(opts){options=$.extend({},$.fn.treeTable.defaults,opts);return this.each(function(){$(this).addClass(&quot;treeTable&quot;).find(&quot;tbody tr&quot;).each(function(){if(!options.expandable||$(this)[0].className.search(&quot;child-of-&quot;)==-1){initialize($(this));}else if(options.initialState==&quot;collapsed&quot;){this.style.display=&quot;none&quot;;}});});};$.fn.treeTable.defaults={childPrefix:&quot;child-of-&quot;,clickableNodeNames:false,expandable:true,indent:19,initialState:&quot;collapsed&quot;,treeColumn:0};$.fn.collapse=function(){$(this).addClass(&quot;collapsed&quot;);childrenOf($(this)).each(function(){if(!$(this).hasClass(&quot;collapsed&quot;)){$(this).collapse();}
 $(this).hide();});return this;};$.fn.expand=function(){$(this).removeClass(&quot;collapsed&quot;).addClass(&quot;expanded&quot;);childrenOf($(this)).each(function(){initialize($(this));if($(this).is(&quot;.expanded.parent&quot;)){$(this).expand();}
 $(this).show();});return this;};$.fn.appendBranchTo=function(destination){var node=$(this);var parent=parentOf(node);var ancestorNames=$.map(ancestorsOf($(destination)),function(a){return a.id;});if(options.drop_location==&quot;bottom&quot;){move_to=childrenOf($(destination)).reverse()[0];}else{move_to=destination;}
 if($.inArray(node[0].id,ancestorNames)==-1&amp;&amp;(!parent||(destination.id!=parent[0].id))&amp;&amp;destination.id!=node[0].id){indent(node,ancestorsOf(node).length*options.indent*-1);if(parent){node.removeClass(options.childPrefix+parent[0].id);}
@@ -7,5 +7,6 @@ node.addClass(options.childPrefix+destination.id);indent(node,ancestorsOf(node).
 return this;};$.fn.reverse=function(){return this.pushStack(this.get().reverse(),arguments);};$.fn.toggleBranch=function(){if($(this).hasClass(&quot;collapsed&quot;)){$(this).expand();}else{$(this).removeClass(&quot;expanded&quot;).collapse();}
 return this;};function ancestorsOf(node){var ancestors=[];while(node=parentOf(node)){ancestors[ancestors.length]=node[0];}
 return ancestors;};function childrenOf(node){return $(&quot;table.treeTable tbody tr.&quot;+options.childPrefix+node[0].id);};function indent(node,value){var cell=$(node.children(&quot;td&quot;)[options.treeColumn]);var padding=parseInt(cell.css(&quot;padding-left&quot;),10)+value;cell.css(&quot;padding-left&quot;,+padding+&quot;px&quot;);childrenOf(node).each(function(){indent($(this),value);});};function initialize(node){if(!node.hasClass(&quot;initialized&quot;)){node.addClass(&quot;initialized&quot;);var childNodes=childrenOf(node);if(!node.hasClass(&quot;parent&quot;)&amp;&amp;childNodes.length&gt;0){node.addClass(&quot;parent&quot;);}
-if(node.hasClass(&quot;parent&quot;)){var cell=$(node.children(&quot;td&quot;)[options.treeColumn]);var padding=parseInt(cell.css(&quot;padding-left&quot;),10)+options.indent;childNodes.each(function(){$($(this).children(&quot;td&quot;)[options.treeColumn]).css(&quot;padding-left&quot;,padding+&quot;px&quot;);});if(options.expandable){cell.prepend('&lt;span style=&quot;margin-left: -'+options.indent+'px; padding-left: '+options.indent+'px&quot; class=&quot;expander&quot;&gt;&lt;/span&gt;');$(cell[0].firstChild).click(function(){node.toggleBranch();});if(!(node.hasClass(&quot;expanded&quot;)||node.hasClass(&quot;collapsed&quot;))){node.addClass(options.initialState);}
-if(node.hasClass(&quot;collapsed&quot;)){node.collapse();}else if(node.hasClass(&quot;expanded&quot;)){node.expand();}}}}};function move(node,destination){node.insertAfter(destination);childrenOf(node).reverse().each(function(){move($(this),node[0]);});};function parentOf(node){var classNames=node[0].className.split(' ');for(key in classNames){if(classNames[key].match(&quot;child-of-&quot;)){return $(&quot;#&quot;+classNames[key].substring(9));}}};})(jQuery);
\ No newline at end of file
+if(node.hasClass(&quot;parent&quot;)){var cell=$(node.children(&quot;td&quot;)[options.treeColumn]);var padding=parseInt(cell.css(&quot;padding-left&quot;),10)+options.indent;childNodes.each(function(){$($(this).children(&quot;td&quot;)[options.treeColumn]).css(&quot;padding-left&quot;,padding+&quot;px&quot;);});if(options.expandable){cell.prepend('&lt;span style=&quot;margin-left: -'+options.indent+'px; padding-left: '+options.indent+'px&quot; class=&quot;expander&quot;&gt;&lt;/span&gt;');$(cell[0].firstChild).click(function(){node.toggleBranch();});if(options.clickableNodeNames){$(cell).css('cursor','pointer');$(cell).click(function(e){if(e.target.className!='expander'){node.toggleBranch();}});}
+if(!(node.hasClass(&quot;expanded&quot;)||node.hasClass(&quot;collapsed&quot;))){node.addClass(options.initialState);}
+if(node.hasClass(&quot;expanded&quot;)){node.expand();}}}}};function move(node,destination){node.insertAfter(destination);childrenOf(node).reverse().each(function(){move($(this),node[0]);});};function parentOf(node){var classNames=node[0].className.split(' ');for(key in classNames){if(classNames[key].match(&quot;child-of-&quot;)){return $(&quot;#&quot;+classNames[key].substring(9));}}};})(jQuery);
\ No newline at end of file</diff>
      <filename>treeTable/src/javascripts/jquery.treeTable.min.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>afb54861fcbd3d9848b94a7db31beed9396c9987</id>
    </parent>
  </parents>
  <author>
    <name>Ludo van den Boom</name>
    <email>ludo@kabisa.nl</email>
  </author>
  <url>http://github.com/ludo/jquery-plugins/commit/d431200d0ebccefb9e1417ecbc2dae9159464135</url>
  <id>d431200d0ebccefb9e1417ecbc2dae9159464135</id>
  <committed-date>2009-07-25T06:02:59-07:00</committed-date>
  <authored-date>2009-07-25T04:06:18-07:00</authored-date>
  <message>Added 'clickableNodeNames' option</message>
  <tree>15337c244f7dd3072da11fa4868b107979e708f0</tree>
  <committer>
    <name>Ludo van den Boom</name>
    <email>ludo@kabisa.nl</email>
  </committer>
</commit>
