Upgrade to ExtJS 3.2.0 - Released 03/30/2010
[extjs.git] / examples / tree / reorder.js
index 03fcaa7..6f0464f 100644 (file)
@@ -1,35 +1,32 @@
-/*\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.onReady(function(){\r
-    // shorthand\r
-    var Tree = Ext.tree;\r
-    \r
-    var tree = new Tree.TreePanel({\r
-        el:'tree-div',\r
-        useArrows:true,\r
-        autoScroll:true,\r
-        animate:true,\r
-        enableDD:true,\r
-        containerScroll: true,\r
-\r
-        // auto create TreeLoader\r
-        dataUrl: 'get-nodes.php',\r
-\r
-        root: {\r
-            nodeType: 'async',\r
-            text: 'Ext JS',\r
-            draggable:false,\r
-            id:'source'\r
-        }\r
-    });\r
-\r
-    // render the tree\r
-    tree.render();\r
-    tree.getRootNode().expand();\r
+/*!
+ * Ext JS Library 3.2.0
+ * Copyright(c) 2006-2010 Ext JS, Inc.
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+Ext.onReady(function(){
+    // shorthand
+    var Tree = Ext.tree;
+
+    var tree = new Tree.TreePanel({
+        useArrows: true,
+        autoScroll: true,
+        animate: true,
+        enableDD: true,
+        containerScroll: true,
+        border: false,
+        // auto create TreeLoader
+        dataUrl: 'get-nodes.php',
+
+        root: {
+            nodeType: 'async',
+            text: 'Ext JS',
+            draggable: false,
+            id: 'src'
+        }
+    });
+
+    // render the tree
+    tree.render('tree-div');
+    tree.getRootNode().expand();
 });
\ No newline at end of file