Pman.Tab.BuilderDatabase.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 1 Nov 2011 03:15:17 +0000 (11:15 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 1 Nov 2011 03:15:17 +0000 (11:15 +0800)
Pman.Tab.BuilderDatabase.bjs
Pman.Tab.BuilderDatabase.js
Pman.Tab.BuilderDatabase.js

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

index a6ba0c4..278ea07 100644 (file)
@@ -84,7 +84,7 @@
                                     "enableDrop": true,
                                     "rootVisible": false,
                                     "xtype": "TreePanel",
-                                    "|renderer": "function(n) {\n    return String.format('<B>{0}</B><i>{1}</i>',\n        n.attributes.name,\n        n.attributes.desc\n    );\n\n}",
+                                    "|renderer": "function(n) {\n    n.attributes.leaf = n.attributes.name.length ? true : false;\n\n    return String.format('<B>{0}</B><i>{1}</i>',\n        n.attributes.name,\n        n.attributes.desc\n    );\n    \n}",
                                     "|xns": "Roo.tree",
                                     "items": [
                                         {
index ec5abd6..5fc8bd3 100644 (file)
@@ -108,11 +108,13 @@ Pman.Tab.BuilderDatabase = new Roo.util.Observable({
                             enableDrop : true,
                             rootVisible : false,
                             renderer : function(n) {
+                                n.attributes.leaf = n.attributes.name.length ? true : false;
+                            
                                 return String.format('<B>{0}</B><i>{1}</i>',
                                     n.attributes.name,
                                     n.attributes.desc
                                 );
-                            
+                                
                             },
                             loader : {
                                 xtype: 'TreeLoader',