Pman.Tab.BuilderProps.bjs
authorEdward <edward@roojs.com>
Mon, 10 Mar 2014 07:14:27 +0000 (15:14 +0800)
committerEdward <edward@roojs.com>
Mon, 10 Mar 2014 07:14:27 +0000 (15:14 +0800)
Pman.Tab.BuilderProps.js

Pman.Tab.BuilderProps.bjs
Pman.Tab.BuilderProps.js

index d3c3f0d..a29b1b5 100644 (file)
@@ -59,7 +59,7 @@
                     "items": [
                         {
                             "listeners": {
-                                "click": "function (_self, e)\n{\n \n    // show a dialog to select property??\n    // or should we add a line and get clever with pulldowns..\n    var ec = _this.grid.currentNode.elConfig;\n    Pman.Dialog.BuilderProp.show({\n            xtype : ec.xtype  || '',\n            xns: ec['|xns'] || '',\n            list: 'props'\n    }, function (n,val) {\n        ec[n] = val || '';\n        _this.grid.setCurrrentNode(_this.grid.currentNode);\n        var bp = Pman.Tab.BuilderView.panel;\n        bp.redraw.defer(100,bp, [true]);\n        // update the tree's  text\n        _this.grid.currentNode.setText(\n            Pman.Builder.Tree.configToText(_this.grid.currentNode.elConfig)\n        );\n    });\n}"
+                                "click": "function (_self, e)\n{\n \n    // show a dialog to select property??\n    // or should we add a line and get clever with pulldowns..\n    var ec = _this.grid.currentNode.elConfig;\n    Roo.log(ec);\n    Pman.Dialog.BuilderProp.show({\n            xtype : ec.xtype  || '',\n            xns: ec['|xns'] || '',\n            list: 'props'\n    }, function (n,val) {\n        ec[n] = val || '';\n        _this.grid.setCurrrentNode(_this.grid.currentNode);\n        var bp = Pman.Tab.BuilderView.panel;\n        bp.redraw.defer(100,bp, [true]);\n        // update the tree's  text\n        _this.grid.currentNode.setText(\n            Pman.Builder.Tree.configToText(_this.grid.currentNode.elConfig)\n        );\n    });\n}"
                             },
                             "text": "Add Property",
                             "xtype": "Item",
index 7329c28..5782e98 100644 (file)
@@ -253,6 +253,7 @@ Pman.Tab.BuilderProps = new Roo.XComponent({
                                 // show a dialog to select property??
                                 // or should we add a line and get clever with pulldowns..
                                 var ec = _this.grid.currentNode.elConfig;
+                                Roo.log(ec);
                                 Pman.Dialog.BuilderProp.show({
                                         xtype : ec.xtype  || '',
                                         xns: ec['|xns'] || '',