{ "id": "roo-file-271", "name": "Pman.Dialog.CmsCategory", "parent": "", "title": "Cms - Category Edit", "path": "/home/edward/gitlive/Pman.Cms/Pman.Dialog.CmsCategory.bjs", "items": [ { "xtype": "LayoutDialog", "|xns": "Roo", "background": true, "width": 800, "height": 500, "title": "Edit Category", "modal": true, "resizable": false, "collapsible": false, "closable": false, "listeners": {}, "items": [ { "xtype": "LayoutRegion", "*prop": "center", "titlebar": false, "listeners": {}, "|xns": "Roo" }, { "xtype": "LayoutRegion", "*prop": "east", "titlebar": false, "split": "true", "fitToFrame": "true", "width": 200, "listeners": {}, "|xns": "Roo" }, { "xtype": "ContentPanel", "background": true, "fitToFrame": true, "region": "center", "listeners": {}, "|xns": "Roo", "items": [ { "listeners": { "|actionfailed": "function (_self, action)\n{\n _this.dialog.el.unmask();\n Pman.standardActionFailed(_self, action);\n}\n", "|actioncomplete": "function (_self, action)\n{\n \n if (action.type =='submit') {\n \n _this.dialog.el.unmask();\n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\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 return;\n }\n _this.grid.getDataSource().load();\n return;\n }\n if (action.type == 'load') {\n _this.grid.getDataSource().load();\n _this.dialog.el.unmask();\n return;\n }\n \n \n \n}\n", "|rendered": "function (_self)\n{\n _this.form = _self;\n}\n" }, "method": "POST", "style": "margin: 5px", "xtype": "Form", "|url": "baseURL + '/Roo/Category.php'", "|xns": "Roo.form", "items": [ { "fieldLabel": "Parent", "name": "parent_id_title", "readOnly": true, "width": 450, "xtype": "TextField", "|xns": "Roo.form" }, { "decimalPrecision": 0, "fieldLabel": "Order (1 first)", "name": "display_order", "width": 50, "xtype": "NumberField", "|xns": "Roo.form" }, { "name": "title", "fieldLabel": "Title", "width": 450, "xtype": "TextField", "listeners": {}, "|xns": "Roo.form" }, { "allowBlank": true, "displayField": "name", "editable": "false", "emptyText": "Select Type", "fieldLabel": "Type", "forceSelection": true, "hiddenName": "category_type_id", "listWidth": 200, "loadingText": "Searching...", "minChars": 2, "name": "category_type_id_name", "pageSize": 20, "qtip": "Select cms_category_type", "selectOnFocus": true, "tpl": "