1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.MTrackMilestone = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
37 title : "Edit / Create mtrack_milestone",
41 xtype: 'ContentPanel',
49 actioncomplete : function(_self,action)
51 if (action.type == 'setdata') {
52 //_this.dialog.el.mask("Loading");
53 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
56 if (action.type == 'load') {
57 _this.dialog.el.unmask();
60 if (action.type =='submit') {
62 _this.dialog.el.unmask();
66 _this.callback.call(_this, _this.form.getValues());
72 rendered : function (form)
78 style : 'margin:10px;',
79 url : baseURL + '/Roo/mtrack_milestone.php',
85 displayField : 'name',
87 emptyText : "Select Project",
88 fieldLabel : 'Project',
89 forceSelection : true,
90 hiddenName : 'project_id',
92 loadingText : "Searching...",
94 name : 'project_id_name',
96 qtip : "Select Projects",
97 queryParam : 'query[name]',
99 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
100 triggerAction : 'all',
108 sortInfo : { direction : 'ASC', field: 'id' },
110 beforeload : function (_self, o){
111 o.params = o.params || {};
119 url : baseURL + '/Roo/Projects.php'
126 totalProperty : 'total',
127 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
141 fieldLabel : 'Description',
142 name : 'description',
149 fieldLabel : 'Startdate',
156 fieldLabel : 'Duedate',
163 fieldLabel : 'Completed',
178 xtype: 'LayoutRegion',
186 click : function (_self, e)
197 click : function (_self, e)
202 _this.dialog.el.mask("Saving");
203 _this.form.doAction("submit");