Pman.Tab.BuilderDatabase.bjs
authorAlan Knowles <alan@akbkhome.com>
Wed, 2 Nov 2011 08:58:29 +0000 (16:58 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 2 Nov 2011 08:58:29 +0000 (16:58 +0800)
Pman.Tab.BuilderDatabase.bjs
Pman.Tab.BuilderDatabase.js
Pman.Tab.BuilderDatabase.js

Pman.Tab.BuilderDatabase.bjs
Pman.Tab.BuilderDatabase.js

index fafa0c7..6e91a97 100644 (file)
                                     "items": [
                                         {
                                             "listeners": {
-                                                "click": "function (_self, e)\n{\n    _this.nIndex =     _this.nIndex || 0;\n    \n    var m = _this.cxnode.firstChild ? 'insertBefore' : 'appendChild';\n    var node = this.cxnode[m](\n        new Roo.tree.TreeNode({\n            text:'New Group ' + (++_this.nIndex), \n            cls:'album-node', \n            allowDrag:false,\n            leaf : false,\n        }), _this.cxnode.firstChild);\n}"
+                                                "click": "function (_self, e)\n{\n    _this.nIndex =     _this.nIndex || 0;\n    \n    var m = _this.cxnode.firstChild ? 'insertBefore' : 'appendChild';\n    var node = _this.cxnode[m](\n        new Roo.tree.TreeNode({\n            text:'New Group ' + (++_this.nIndex), \n            cls:'album-node', \n            allowDrag:false,\n            leaf : false,\n        }), _this.cxnode.firstChild);\n}"
                                             },
                                             "text": "Add Group",
                                             "xtype": "Item",
index b3f6740..5a30306 100644 (file)
@@ -195,7 +195,7 @@ Pman.Tab.BuilderDatabase = new Roo.util.Observable({
                                             _this.nIndex =     _this.nIndex || 0;
                                             
                                             var m = _this.cxnode.firstChild ? 'insertBefore' : 'appendChild';
-                                            var node = this.cxnode[m](
+                                            var node = _this.cxnode[m](
                                                 new Roo.tree.TreeNode({
                                                     text:'New Group ' + (++_this.nIndex), 
                                                     cls:'album-node',