{ "name" : "Pman.Tab.MtrackCal", "parent" : "Pman.Tab.DocumentsTab", "title" : "Pman.Tab.MtrackCal", "path" : "/home/alan/gitlive/Pman.MTrack/Pman.Tab.MtrackCal.bjs", "permname" : "", "modOrder" : "100", "strings" : { "1243daf593fa297e07ab03bf06d925af" : "Searching...", "340c2ee497b85d5954b01c64de7f44f6" : "Select Person ", "40bed7cf9b3d4bb3a3d7a7e3eb18c5eb" : "Person ", "25f7347236b51a5eae4ba01a7862cb55" : "Schedule" }, "items" : [ { "listeners" : { "activate" : "function (_self)\n{\n if (!_this.cal) {\n return;\n }\n _this.cal.setDate(new Date());\n}" }, "region" : "center", "xtype" : "GridPanel", "title" : "Schedule", "$ xns" : "Roo", "items" : [ { "listeners" : { "eventrender" : "function (_self, rec)\n{\n \n rec.data.time = ''; // not needed\n rec.data.title = rec.data.developer_id_name + ' ' + rec.data.project_id_name;\n rec.data.qtip = '#' + rec.data.id + ' ' + rec.data.summary;\n \n if (!rec.data.estimated) {\n rec.data.cls = \"Greys-q3-6 fc-black-text \"; // grey...\n } else {\n rec.data.cls = 'fc-black-text RdYlGn-q' + rec.data.priority_id_seqid +'-7'\n }\n \n \n}", "eventclick" : "function (_self, Ev,r )\n{\n // show the dialog..\n // reload the calendar on exit.\n Roo.log(Ev);\n Roo.log(r);\n Pman.Dialog.MTrackTicket.show({ id : r.data.id } , function(res) {\n // update the record..\n // redra\n Roo.log(\"ticket updated\");\n // start / end times? - not sent through, so it should not update..\n for(k in res) {\n r.data[k] = res[k];\n }\n \n _this.cal.renderEvents();\n \n \n });\n}", "render" : "function (grid)\n{\n \n _this.cal = grid;\n}" }, "xtype" : "Calendar", "$ xns" : "Roo.grid", "* prop" : "grid", "items" : [ { "xtype" : "Toolbar", "$ xns" : "Roo", "* prop" : "toolbar", "items" : [ { "listeners" : { "|render" : "function (_self)\n{\n _this.personSel = _self;\n}", "|select" : "function (combo, record, index)\n{\n _this.cal.load();\n \n}", "select" : "function (combo, record, index)\n{\n\n}" }, "listWidth" : 600, "triggerAction" : "all", "fieldLabel" : "Person ", "forceSelection" : true, "selectOnFocus" : true, "pageSize" : 20, "displayField" : "name", "emptyText" : "Select Person ", "minChars" : 2, "valueField" : "id", "xtype" : "ComboBox", "allowBlank" : true, "typeAhead" : true, "editable" : true, "width" : 150, "$ xns" : "Roo.form", "name" : "person_id_name", "qtip" : "Select Person ", "queryParam" : "query[name]", "tpl" : "