Author: sevein
Date: Tue Oct 13 09:49:14 2009
New Revision: 3731

Log:
After drag&drop if parent nodes get without children, set isLeaf to true to 
drop expand icon.

Modified:
   trunk/web/js/treeView.js

Modified: trunk/web/js/treeView.js
==============================================================================
--- trunk/web/js/treeView.js    Tue Oct 13 09:32:30 2009        (r3730)
+++ trunk/web/js/treeView.js    Tue Oct 13 09:49:14 2009        (r3731)
@@ -35,6 +35,11 @@
 
                 parentNode.tree.popNode(textNode);
 
+                if (!parentNode.children.length)
+                {
+                  parentNode.isLeaf = true;
+                }
+
                 parentNode.refresh();
 
                 $('.ygtvlabel', '#' + 
parentNode.getChildrenElId()).each(function ()
@@ -125,6 +130,11 @@
 
                       node.tree.popNode(textNode);
 
+                      if (!node.children.length)
+                      {
+                        node.isLeaf = true;
+                      }
+
                       node.refresh();
 
                       $('.ygtvlabel', '#' + 
node.getChildrenElId()).each(function ()

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to