Upgrade to ExtJS 3.0.0 - Released 07/06/2009
[extjs.git] / examples / tree / two-trees.js
index f6672ec..d930dc9 100644 (file)
@@ -1,11 +1,9 @@
-/*\r
- * Ext JS Library 2.2.1\r
- * Copyright(c) 2006-2009, Ext JS, LLC.\r
- * licensing@extjs.com\r
- * \r
- * http://extjs.com/license\r
- */\r
-\r
+/*!
+ * Ext JS Library 3.0.0
+ * Copyright(c) 2006-2009 Ext JS, LLC
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
 var TreeTest = function(){\r
     // shorthand\r
     var Tree = Ext.tree;\r
@@ -14,12 +12,12 @@ var TreeTest = function(){
         init : function(){\r
             // yui-ext tree\r
             var tree = new Tree.TreePanel({\r
-                el:'tree',\r
                 animate:true, \r
                 autoScroll:true,\r
                 loader: new Tree.TreeLoader({dataUrl:'get-nodes.php'}),\r
                 enableDD:true,\r
                 containerScroll: true,\r
+                border: false,\r
                 dropConfig: {appendOnly:true}\r
             });\r
             \r
@@ -30,12 +28,12 @@ var TreeTest = function(){
             var root = new Tree.AsyncTreeNode({\r
                 text: 'Ext JS', \r
                 draggable:false, // disable root node dragging\r
-                id:'source'\r
+                id:'src'\r
             });\r
             tree.setRootNode(root);\r
             \r
             // render the tree\r
-            tree.render();\r
+            tree.render('tree');\r
             \r
             root.expand(false, /*no anim*/ false);\r
             \r
@@ -43,7 +41,6 @@ var TreeTest = function(){
             \r
             // YUI tree            \r
             var tree2 = new Tree.TreePanel({\r
-                el:'tree2',\r
                 animate:true,\r
                 autoScroll:true,\r
                 //rootVisible: false,\r
@@ -52,6 +49,7 @@ var TreeTest = function(){
                     baseParams: {lib:'yui'} // custom http params\r
                 }),\r
                 containerScroll: true,\r
+                border: false,\r
                 enableDD:true,\r
                 dropConfig: {appendOnly:true}\r
             });\r
@@ -66,7 +64,7 @@ var TreeTest = function(){
                 id:'yui'\r
             });\r
             tree2.setRootNode(root2);\r
-            tree2.render();\r
+            tree2.render('tree2');\r
             \r
             root2.expand(false, /*no anim*/ false);\r
         }\r