3 "name": "Pman.Dialog.MTrackMilestone",
6 "path": "/home/alan/gitlive/Pman.MTrack/Pman.Dialog.MTrackMilestone.bjs",
13 "title": "Edit / Create mtrack_milestone",
15 "xtype": "LayoutDialog",
20 "xtype": "LayoutRegion",
25 "xtype": "ContentPanel",
30 "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n if (_this.data.id) {\n\n this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n }\n return;\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",
31 "|rendered": "function (form)\n{\n _this.form= form;\n}\n"
34 "style": "margin:10px;",
36 "|url": "baseURL + '/Roo/mtrack_milestone.php'",
40 "allowBlank": "false",
41 "displayField": "name",
43 "emptyText": "Select Project",
44 "fieldLabel": "Project",
45 "forceSelection": true,
46 "hiddenName": "project_id",
48 "loadingText": "Searching...",
50 "name": "project_id_name",
52 "qtip": "Select Projects",
53 "queryParam": "query[name]",
54 "selectOnFocus": true,
55 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{CODE} - {name}</b> </div>",
56 "triggerAction": "all",
65 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
70 "|sortInfo": "{ direction : 'ASC', field: 'name' }",
78 "|url": "baseURL + '/Roo/Projects.php'"
82 "xtype": "JsonReader",
86 "totalProperty": "total",
87 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
101 "fieldLabel": "Description",
103 "name": "description",
109 "fieldLabel": "Startdate",
113 "xtype": "DateField",
117 "fieldLabel": "Duedate",
124 "fieldLabel": "Completed",
141 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
143 "*prop": "buttons[]",
150 "click": "function (_self, e)\n{\n // do some checks?\n \n \n _this.dialog.el.mask(\"Saving\");\n _this.form.doAction(\"submit\");\n\n}"
152 "*prop": "buttons[]",