listeners : {
click : function (_self, e)
{
- _this.dialog.el.mask("Merging");
+
_this.form.doAction("submit");
}
if (action.type =='submit') {
- _this.dialog.el.unmask();
- _this.dialog.hide();
+ _this.dialog.hide();
if (_this.callback) {
_this.callback.call(_this, _this.form.getValues());
return;
}
if (action.type == 'setdata') {
- _this.data.table = _this.data.table || 'Companies';
- _this.form.findField('table').setValue(_this.data.table);
- var title = _this.data.title || _this.data.comptype;
+
+ var title = _this.data.title || _this.data.etype;
_this.dialog.setTitle("Delete selected " + title + " and merge data with");
- _this.form.findField('merge_id').store.proxy.conn.url = baseURL + '/Roo/' + _this.data.table + '.php';
- _this.form.findField('merge_id').emptyText = "Select " + title;
- _this.form.findField('merge_id').reset();
+
return;
}
},
actionfailed : function (_self, action)
{
- _this.dialog.el.unmask();
+
Pman.standardActionFailed(_self, action);
},
rendered : function (form)
o.params['etype'] = _this.data.etype;
-
+ o.params['!id'] = _this.form.findField('id').getValue();
// set more here
}
},