{ "name" : "Pman.Dialog.AddChildElementToPage", "parent" : "", "title" : "", "path" : "/home/edward/gitlive/Pman.Cms/Pman.Dialog.AddChildElementToPage.bjs", "permname" : "", "modOrder" : "001", "strings" : { "463ab1bc075f498d1aa03b9bc062efa3" : "Element Type", "9656c9cdb7ecd471b88284047d6d885b" : "Select Element", "1243daf593fa297e07ab03bf06d925af" : "Searching...", "ea4788705e6873b424c65e91c2846b19" : "Cancel", "c9cc8cce247e49bae79f15173ce97354" : "Save", "f4b319f11758cc6fe44c71999f7690ac" : "Type of element to add" }, "items" : [ { "listeners" : { "show" : "function (_self)\n{\n \n \n}" }, "collapsible" : false, "title" : "Type of element to add", "xtype" : "LayoutDialog", "width" : 400, "$ xns" : "Roo", "closable" : false, "resizable" : false, "height" : 120, "items" : [ { "xtype" : "LayoutRegion", "$ xns" : "Roo", "* prop" : "center" }, { "region" : "center", "xtype" : "ContentPanel", "$ xns" : "Roo", "items" : [ { "listeners" : { "|actioncomplete" : "function(_self,action)\n{\n if (action.type == 'setdata') {\n \n return;\n }\n if (action.type == 'load') {\n \n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getFieldValues());\n }\n \n _this.form.reset();\n \n return;\n }\n}\n", "|rendered" : "function (form)\n{\n _this.form = form;\n}\n" }, "$ url" : "baseURL + '/Roo/cms_category_type.php'", "xtype" : "Form", "method" : "POST", "style" : "margin:10px;", "$ xns" : "Roo.form", "items" : [ { "alwaysQuery" : true, "listWidth" : 400, "triggerAction" : "all", "fieldLabel" : "Element Type", "forceSelection" : true, "selectOnFocus" : true, "pageSize" : 20, "displayField" : "name", "emptyText" : "Select Element", "hiddenName" : "element_id", "minChars" : 2, "valueField" : "id", "xtype" : "ComboBox", "typeAhead" : false, "editable" : false, "$ xns" : "Roo.form", "name" : "element_id_name", "qtip" : "Select Element", "tpl" : "
{name}
", "loadingText" : "Searching...", "items" : [ { "listeners" : { "|beforeload" : "function (_self, o){\n \n o.params = o.params || {};\n \n Roo.log(_this.data);\n \n if(!_this.data.template_id || _this.data.template_id * 1 < 1){\n return false;\n }\n \n o.params.template_id = _this.data.template_id;\n \n}\n" }, "xtype" : "Store", "remoteSort" : true, "$ sortInfo" : "{ direction : 'ASC', field: 'seqid' }", "$ xns" : "Roo.data", "* prop" : "store", "items" : [ { "$ url" : "baseURL + '/Roo/Cms_template_element.php'", "xtype" : "HttpProxy", "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, { "id" : "id", "root" : "data", "xtype" : "JsonReader", "$ fields" : "[\n {\n \"name\":\"id\",\n \"type\":\"int\"\n },\n {\n \"name\":\"name\",\n \"type\":\"string\"\n }\n]", "$ xns" : "Roo.data", "* prop" : "reader", "totalProperty" : "total" } ] } ] } ] } ] }, { "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 _this.form.doAction(\"submit\");\n\n}" }, "text" : "Save", "xtype" : "Button", "$ xns" : "Roo", "* prop" : "buttons[]" } ] } ] }