3 "name": "Pman.Dialog.MTrackMilestone",
6 "path": "/home/alan/gitlive/Pman.MTrack/Pman.Dialog.MTrackMilestone.bjs",
14 "title": "Edit / Create Milestone",
16 "xtype": "LayoutDialog",
21 "xtype": "LayoutRegion",
26 "xtype": "ContentPanel",
31 "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n if (_this.data.id) {\n this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n }\n return;\n \n }\n if (action.type == 'load') {\n\n return;\n }\n if (action.type =='submit') {\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}\n",
32 "|rendered": "function (form)\n{\n _this.form= form;\n}\n"
35 "style": "margin:10px;",
37 "|url": "baseURL + '/Roo/mtrack_milestone.php'",
49 "displayField": "name",
51 "emptyText": "Select Project",
52 "fieldLabel": "Project",
53 "forceSelection": true,
54 "hiddenName": "project_id",
56 "loadingText": "Searching...",
58 "name": "project_id_name",
60 "qtip": "Select Projects",
61 "queryParam": "query[name]",
62 "selectOnFocus": true,
63 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{code}</b> {name}</div>",
64 "triggerAction": "all",
72 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
77 "|sortInfo": "{ direction : 'ASC', field: 'code' }",
85 "|url": "baseURL + '/Roo/Projects.php'"
89 "xtype": "JsonReader",
93 "totalProperty": "total",
94 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
101 "fieldLabel": "Description",
102 "name": "description",
109 "altFormats": "Y-m-d H:i:s",
110 "fieldLabel": "Startdate",
114 "xtype": "DateField",
118 "altFormats": "Y-m-d H:i:s",
119 "fieldLabel": "Duedate",
123 "xtype": "DateField",
127 "altFormats": "Y-m-d H:i:s",
128 "fieldLabel": "Completed",
132 "xtype": "DateField",
136 "boxLabel": "On hold",
137 "fieldLabel": "Status",
155 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
157 "*prop": "buttons[]",
164 "click": "function (_self, e)\n{\n // do some checks?\n \n \n \n _this.form.doAction(\"submit\");\n\n}"
166 "*prop": "buttons[]",