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

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

index a0cefb0..9763662 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\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\n    Pman.Dialog.BuilderProp.show({\n            xtype : ec.xtype  || '',\n            xns: ec['|xns'] || '',\n            list: 'props'\n    }, function (n,val) {\n        Roo.log(n);\n                Roo.log(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 d2d45bc..e3931ba 100644 (file)
@@ -259,14 +259,16 @@ Pman.Tab.BuilderProps = new Roo.XComponent({
                                         xns: ec['|xns'] || '',
                                         list: 'props'
                                 }, function (n,val) {
-                                    ec[n] = val || '';
+                                    Roo.log(n);
+                                            Roo.log(val);
+                            /*        ec[n] = val || '';
                                     _this.grid.setCurrrentNode(_this.grid.currentNode);
                                     var bp = Pman.Tab.BuilderView.panel;
                                     bp.redraw.defer(100,bp, [true]);
                                     // update the tree's  text
                                     _this.grid.currentNode.setText(
                                         Pman.Builder.Tree.configToText(_this.grid.currentNode.elConfig)
-                                    );
+                                    );*/
                                 });
                             }
                         },