Author: sevein
Date: Thu Oct  1 08:01:47 2009
New Revision: 3625

Log:
Add check to avoid parent root nodes be draggable.

Modified:
   trunk/web/js/treeView.js

Modified: trunk/web/js/treeView.js
==============================================================================
--- trunk/web/js/treeView.js    Wed Sep 30 17:35:23 2009        (r3624)
+++ trunk/web/js/treeView.js    Thu Oct  1 08:01:47 2009        (r3625)
@@ -14,7 +14,7 @@
           textNode.isLeaf = object.isLeaf;
           textNode.qubit_id = object.id;
 
-          if (Qubit.treeView.draggable)
+          if (Qubit.treeView.draggable && !textNode.parent.isRoot())
           {
             var dd = new YAHOO.util.DD(textNode.labelElId);
 
@@ -64,7 +64,7 @@
               var tmp = new YAHOO.widget.TextNode(data[i], node, false);
               tmp.isLeaf = data[i].isLeaf;
 
-              if (Qubit.treeView.draggable)
+              if (Qubit.treeView.draggable && !textNode.parent.isRoot())
               {
                 var dd = new YAHOO.util.DD(tmp.labelElId);
 

--~--~---------~--~----~------------~-------~--~----~
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