Pman.Tab.BuilderProps.bjs
authorAlan Knowles <alan@akbkhome.com>
Fri, 4 Nov 2011 06:38:47 +0000 (14:38 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 4 Nov 2011 06:38:47 +0000 (14:38 +0800)
Pman.Tab.BuilderProps.bjs
Pman.Tab.BuilderProps.js
Pman.Tab.BuilderProps.js

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

index f479b9c..e1427fd 100644 (file)
@@ -55,7 +55,7 @@
                         },
                         {
                             "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: 'events'\n    }, function (n,val) {\n        ec[n] = val || \"function () {\\n\\n}\";\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    Pman.Dialog.BuilderProp.show({\n            xtype : ec.xtype  || '',\n            xns: ec['|xns'] || '',\n            list: 'events'\n    }, function (n,val) {\n        n = '!|' + n;\n        ec[n] = val || \"function () {\\n\\n}\";\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 Event Handler",
                             "xtype": "Item",
index 1ad9bf7..cb2a2b9 100644 (file)
@@ -261,6 +261,7 @@ Pman.Tab.BuilderProps = new Roo.util.Observable({
                                         xns: ec['|xns'] || '',
                                         list: 'events'
                                 }, function (n,val) {
+                                    n = '!|' + n;
                                     ec[n] = val || "function () {\n\n}";
                                     _this.grid.setCurrrentNode(_this.grid.currentNode);
                                     var bp = Pman.Tab.BuilderView.panel;