2 "name" : "Pman.Dialog.CoreEnum",
5 "path" : "/home/edward/gitlive/Pman.Core/Pman.Dialog.CoreEnum.bjs",
9 "518ad9ed87d3ca17e223a91604b464d5" : "Add / Edit Core Enum",
10 "cfcd208495d565ef66e7dff9f98764da" : "0",
11 "c4ca4238a0b923820dcc509a6f75849b" : "1",
12 "ea4788705e6873b424c65e91c2846b19" : "Cancel",
13 "e0aa021e21dddbd6d8cecec71e9cf564" : "OK"
18 "show" : "function (_self)\n{\n \n}"
21 "collapsible" : false,
23 "title" : "Add / Edit Core Enum",
24 "xtype" : "LayoutDialog",
32 "xtype" : "LayoutRegion",
41 "xtype" : "ContentPanel",
46 "|actioncomplete" : "function (_self, action)\n{\n if (action.type == 'setdata') {\n\n if((typeof(_this.data.etype) == 'undefined') || !_this.data.etype.length){\n Roo.MessageBox.alert('Error', 'Missing etype');\n _this.dialog.hide();\n return;\n }\n \n if(typeof(_this.data._title) != 'undefined' && _this.data._title.length){\n _this.dialog.setTitle(_this.data._title);\n }\n \n if(_this.data.id){\n _this.dialog.el.mask(\"Loading\");\n this.load({ method: 'GET', params: { '_id' : _this.data.id }}); \n }\n \n return;\n }\n if (action.type == 'load') {\n _this.dialog.el.unmask();\n return;\n }\n if (action.type == 'submit' ) {\n _this.dialog.el.unmask();\n _this.dialog.hide();\n\n if (_this.callback) {\n _this.callback.call(_this, action.result.data);\n }\n _this.form.reset();\n }\n}\n",
47 "|rendered" : "function (form)\n{\n _this.form = form;\n}"
49 "$ url" : "baseURL + '/Roo/core_enum.php'",
52 "style" : "margin: 5px",
56 "fieldLabel" : "Name",
58 "xtype" : "TextField",
60 "actionMode" : "fieldEl",
67 "keyup" : "function (_self, e)\n{\n _this.form.findField('name').setValue(this.getValue().replace(/[^a-z0-9]/ig, '').toUpperCase());\n \n}"
69 "fieldLabel" : "Display Name",
70 "xtype" : "TextField",
74 "name" : "display_name"
77 "String actionMode" : "fieldEl",
78 "Boolean checked" : true,
79 "fieldLabel" : "Active",
101 "$ xns" : "Roo.form",
110 "|click" : "function() {\n _this.form.reset();\n _this.dialog.hide();\n}"
115 "* prop" : "buttons[]"
119 "|click" : "function() {\n\n var name = _this.form.findField('name').getValue();\n name = name.toUpperCase().replace(/[^A-Z]+/g, '');\n if (!name.length) {\n Roo.MessageBox.alert(\"Error\",\"Please fill in a valid name\");\n return;\n }\n _this.form.findField('name').setValue(name);\n \n _this.form.doAction('submit');\n \n}"
124 "* prop" : "buttons[]"