Upgrade to ExtJS 3.0.3 - Released 10/11/2009
[extjs.git] / examples / tree / two-trees.js
index d930dc9..d7bf6c9 100644 (file)
@@ -1,5 +1,5 @@
 /*!
- * Ext JS Library 3.0.0
+ * Ext JS Library 3.0.3
  * Copyright(c) 2006-2009 Ext JS, LLC
  * licensing@extjs.com
  * http://www.extjs.com/license
@@ -18,6 +18,8 @@ var TreeTest = function(){
                 enableDD:true,\r
                 containerScroll: true,\r
                 border: false,\r
+                width: 250,\r
+                height: 300,\r
                 dropConfig: {appendOnly:true}\r
             });\r
             \r
@@ -39,17 +41,19 @@ var TreeTest = function(){
             \r
             //-------------------------------------------------------------\r
             \r
-            // YUI tree            \r
+            // ExtJS tree            \r
             var tree2 = new Tree.TreePanel({\r
                 animate:true,\r
                 autoScroll:true,\r
                 //rootVisible: false,\r
                 loader: new Ext.tree.TreeLoader({\r
                     dataUrl:'get-nodes.php',\r
-                    baseParams: {lib:'yui'} // custom http params\r
+                    baseParams: {path:'extjs'} // custom http params\r
                 }),\r
                 containerScroll: true,\r
                 border: false,\r
+                width: 250,\r
+                height: 300,\r
                 enableDD:true,\r
                 dropConfig: {appendOnly:true}\r
             });\r
@@ -59,9 +63,9 @@ var TreeTest = function(){
             \r
             // add the root node\r
             var root2 = new Tree.AsyncTreeNode({\r
-                text: 'My Files', \r
+                text: 'Extensions', \r
                 draggable:false, \r
-                id:'yui'\r
+                id:'ux'\r
             });\r
             tree2.setRootNode(root2);\r
             tree2.render('tree2');\r