{ "name" : "Pman.Dialog.CmsApplyStyleSheets", "parent" : "", "title" : "", "path" : "/home/edward/gitlive/Pman.Cms/Pman.Dialog.CmsApplyStyleSheets.bjs", "permname" : "", "modOrder" : "001", "strings" : { "ea4788705e6873b424c65e91c2846b19" : "Cancel", "4f6a786f206270451624db40d61d9855" : "Add Stylesheets", "85e8231d44b865e90f6a39b356ded9bd" : "Stylesheets", "e0aa021e21dddbd6d8cecec71e9cf564" : "OK" }, "items" : [ { "modal" : true, "collapsible" : false, "title" : "Add Stylesheets", "xtype" : "LayoutDialog", "width" : 600, "$ xns" : "Roo", "closable" : false, "resizable" : false, "height" : 300, "items" : [ { "xtype" : "LayoutRegion", "$ xns" : "Roo", "* prop" : "center" }, { "region" : "center", "xtype" : "ContentPanel", "$ xns" : "Roo", "items" : [ { "listeners" : { "actionfailed" : "function (_self, action)\n{\n _this.dialog.el.unmask();\n \n Pman.standardActionFailed(_self, action);\n}", "|actioncomplete" : "function(_self,action)\n{\n if (action.type == 'setdata') {\n \n this.load({ method: 'GET', params: { '_stylesheets' : 1 }});\n return;\n }\n if (action.type == 'load') {\n _this.dialog.el.unmask();\n return;\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}\n", "|rendered" : "function (form)\n{\n _this.form= form;\n}\n" }, "$ url" : "baseURL + '/Roo/Cms_page.php'", "method" : "POST", "xtype" : "Form", "style" : "margin:10px;", "String labelAlign" : "top", "$ xns" : "Roo.form", "items" : [ { "fieldLabel" : "Stylesheets", "Number width" : 550, "xtype" : "TextArea", "allowBlank" : true, "Number height" : 200, "$ xns" : "Roo.form", "name" : "_stylesheets" } ] } ] }, { "listeners" : { "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}" }, "text" : "Cancel", "xtype" : "Button", "$ xns" : "Roo", "* prop" : "buttons[]" }, { "listeners" : { "click" : "function (_self, e)\n{\n var stylesheets = _this.form.findField('_stylesheets').getValue();\n \n \n _this.form.doAction(\"submit\");\n}" }, "text" : "OK", "xtype" : "Button", "$ xns" : "Roo", "* prop" : "buttons[]" } ] } ] }