1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace(' Pman.Dialog');
7 Pman.Dialog.MTrackMilestoneMerge = {
10 '42a82ba0b10c97ac4db8b51e50a54c93' :"Merge Milestone",
11 '03e956f1dca2b4d525df03cb1899cb6f' :"Merge with",
12 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
13 'e0aa021e21dddbd6d8cecec71e9cf564' :"OK"
16 'merge_display_name_fieldLabel' : '03e956f1dca2b4d525df03cb1899cb6f' /* Merge with */
22 show : function(data, cb)
30 this.dialog.show(this.data._el);
33 this.form.setValues(data);
34 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
42 this.dialog = Roo.factory({
43 xtype : 'LayoutDialog',
50 title : _this._strings['42a82ba0b10c97ac4db8b51e50a54c93'] /* Merge Milestone */,
53 show : function (_self)
61 xtype : 'LayoutRegion',
69 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
81 text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
85 if(typeof(_this.data._confirm) != 'undefined' && _this.data._confirm * 1 == 1){
86 Roo.MessageBox.confirm(
88 "Are you sure '" + _this.data.display_name + "' Merge with '" + _this.form.findField('_merge_id').getRawValue() + "'",
94 _this.form.doAction('submit');
101 _this.form.doAction('submit');
111 xtype : 'ContentPanel',
121 style : 'margin: 5px',
122 url : baseURL + '/Roo/mtrack_milestone',
124 actioncomplete : function (_self, action)
126 if (action.type == 'setdata') {
130 if (action.type == 'load') {
131 _this.dialog.el.unmask();
134 if (action.type == 'submit' ) {
135 _this.dialog.el.unmask();
138 if (_this.callback) {
139 _this.callback.call(_this, action.result.data);
144 rendered : function (form)
156 displayField : 'name',
158 fieldLabel : _this._strings['03e956f1dca2b4d525df03cb1899cb6f'] /* Merge with */,
159 forceSelection : true,
160 hiddenName : '_merge_id',
163 name : 'merge_display_name',
165 queryParam : 'query[search]',
166 selectOnFocus : true,
167 tpl : '<div class=\"x-grid-cell-text x-btn button\">#{id} - <b>{name}</b> - {description} </div>',
168 triggerAction : 'all',
172 render : function (_self)
182 sortInfo : { direction : 'ASC', field: 'id' },
184 beforeload : function (_self, o){
185 o.params = o.params || {};
186 o.params.project_id = _this.form.findField('project_id').getValue();
187 o.params['!id'] = _this.data.id;
196 url : baseURL + '/Roo/mtrack_milestone.php',
201 xtype : 'JsonReader',
204 totalProperty : 'total',