-/*\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
+ */
Ext.onReady(function(){\r
// shorthand\r
var Tree = Ext.tree;\r
- \r
+\r
var tree = new Tree.TreePanel({\r
- el:'tree-div',\r
- useArrows:true,\r
- autoScroll:true,\r
- animate:true,\r
- enableDD:true,\r
+ useArrows: true,\r
+ autoScroll: true,\r
+ animate: true,\r
+ enableDD: true,\r
containerScroll: true,\r
-\r
+ border: false,\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
+ draggable: false,\r
+ id: 'src'\r
}\r
});\r
\r
// render the tree\r
- tree.render();\r
+ tree.render('tree-div');\r
tree.getRootNode().expand();\r
});
\ No newline at end of file