{ "id": "roo-file-85", "name": "Pman.Dialog.CmsPage", "parent": "", "title": "Cms -Edit Page", "path": "/home/alan/gitlive/Pman.Cms/Pman.Dialog.CmsPage.bjs", "items": [ { "background": true, "closable": false, "collapsible": false, "height": 600, "modal": true, "resizable": false, "title": "Edit Page", "width": 850, "xtype": "LayoutDialog", "|xns": "Roo", "items": [ { "xtype": "LayoutRegion", "*prop": "center", "titlebar": false, "|xns": "Roo" }, { "xtype": "LayoutRegion", "*prop": "east", "titlebar": false, "fitToFrame": "true", "width": 200, "listeners": {}, "|xns": "Roo" }, { "autoScroll": true, "fitToFrame": true, "region": "center", "xtype": "ContentPanel", "|xns": "Roo", "listeners": {}, "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 _this.loaded = false;\n \n // _this.dialog.getLayout().showPanel(0);\n // _this.form.addForm(_this.form1);\n if ( _this.data.id) {\n _this.dialog.el.mask(\"Loading\");\n this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n } else {\n _this.loaded = true;\n //disable image upload!\n _this.form.findField('publish_status').setValue(-1);\n }\n\n return;\n \n }\n \n if (action.type == 'load') {\n _this.dialog.el.unmask();\n _this.grid.getDataSource().load();\n return;\n }\n}\n", "|rendered": "function (_self)\n{\n _this.form = _self;\n}\n" }, "method": "POST", "style": "margin: 5px", "xtype": "Form", "|url": "baseURL + '/Roo/Page.php'", "|xns": "Roo.form", "items": [ { "fieldLabel": "Page link", "name": "page_link", "width": 200, "|xns": "Roo.form", "xtype": "TextField" }, { "allowBlank": true, "displayField": "page_link", "editable": false, "emptyText": "Select Parent", "fieldLabel": "Parent page", "forceSelection": true, "hiddenName": "parent_id", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "parent_id_page_link", "pageSize": 20, "qtip": "Select Category ", "selectOnFocus": true, "tpl": "