{ "id": "roo-file-232", "name": "Pman.Dialog.MTrackTicket", "parent": "", "title": "", "path": "/home/alan/gitlive/Pman.MTrack/Pman.Dialog.MTrackTicket.bjs", "items": [ { "listeners": { "resize": "function (_self, width, height)\n{\n var bw = width - 320;\n _this.form.findField('description').el.setWidth(bw);\n _this.summaryBox.el.setWidth(bw+30);\n _this.summaryCol.el.setWidth(bw+45);\n _this.descCol.el.setWidth(bw+35);\n \n}" }, "closable": false, "collapsible": false, "height": 450, "modal": true, "resizable": true, "title": "Edit or Create Ticket", "width": 700, "xtype": "LayoutDialog", "|xns": "Roo", "items": [ { "|xns": "Roo", "xtype": "LayoutRegion", "*prop": "center" }, { "region": "center", "xtype": "ContentPanel", "|xns": "Roo", "items": [ { "listeners": { "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n \n this.load({ method: 'GET', params: { '_id' : _this.data.id || 0}});\n \n return;\n }\n if (action.type == 'load') {\n if (!_this.data.id) {\n this.setValues(_this.data);\n }\n return;\n }\n \n \n if (action.type =='submit') {\n \n if (!_this.data.id * 1) {\n Roo.MessageBox.confirm(\"Close?\", \n \"The new ticket id is #\" + action.result.data.id + \", Press yes to close, or no to keep editing\",\n function (res) {\n if (res == 'yes') {\n \n \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 _this.data.id = action.result.data.id;\n _this.form.fireEvent('actioncomplete', _this.form, { type : 'setdata', data : {}});\n return;\n }\n );\n \n \n \n \n return;\n }\n \n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset(); \n\n return;\n }\n}\n", "|rendered": "function (form)\n{\n _this.form= form;\n}\n" }, "method": "POST", "style": "margin:10px;width:1000px;margin-top:0px;", "xtype": "Form", "|url": "baseURL + '/Roo/mtrack_ticket.php'", "|xns": "Roo.form", "items": [ { "width": 210, "xtype": "Column", "|xns": "Roo.form", "items": [ { "labelAlign": "top", "legend": "Properties", "style": "width:190px;", "xtype": "FieldSet", "|xns": "Roo.form", "items": [ { "allowBlank": "false", "displayField": "name", "editable": "false", "emptyText": "Select Project", "fieldLabel": "Project", "forceSelection": true, "hiddenName": "project_id", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "project_id_name", "pageSize": 20, "qtip": "Select Projects", "queryParam": "query[name]", "selectOnFocus": true, "tpl": "