3 "name": "Pman.Dialog.CoreEnum",
6 "path": "/home/edward/gitlive/Pman.Core/Pman.Dialog.CoreEnum.bjs",
10 "show": "function (_self)\n{\n \n}"
18 "title": "Add / Edit Core Enum",
20 "xtype": "LayoutDialog",
24 "xtype": "LayoutRegion",
30 "xtype": "ContentPanel",
39 "|actioncomplete": "function (_self, action)\n{\n if (action.type == 'setdata') {\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",
40 "|rendered": "function (form)\n{\n _this.form = form;\n}"
43 "style": "margin: 5px",
45 "|url": "baseURL + '/Roo/core_enum.php'",
58 "fieldLabel": "Industry Name",
59 "name": "display_name",
75 "|click": "function() {\n _this.form.reset();\n _this.dialog.hide();\n}"
84 "|click": "function() {\n\n var name = _this.form.findField('display_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 \n _this.form.doAction('submit');\n \n}"