xtype : 'Form',
method : 'POST',
style : 'margin: 10px;',
- url : baseURL + '/Roo/Core_enum.php',
+ url : baseURL + '/Roo/Core_company.php',
listeners : {
actioncomplete : function (_self, action)
{
_this.form.reset();
return;
}
+
if (action.type == 'setdata') {
- var title = _this.data.title || _this.data.etype;
- _this.dialog.setTitle("Delete selected " + title + " and merge data with");
+ _this.dialog.setTitle("Delete selected " + _this.data.name + " and merge data with");
return;
}
loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
minChars : 2,
name : '_merge_id_name',
- pageSize : 20,
+ pageSize : 25,
qtip : _this._strings['bf8691517ce00a09186a05cd65863091'] /* Select Item to Merge With */,
- queryParam : 'query[search_begins]',
+ queryParam : 'search[name]',
selectOnFocus : true,
- tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> {name}</div>',
+ tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b></div>',
triggerAction : 'all',
typeAhead : true,
valueField : 'id',
beforeload : function (_self, o){
o.params = o.params || {};
- o.params['etype'] = _this.data.etype;
-
o.params['!id'] = _this.form.findField('id').getValue();
- // set more here
}
},
xns : Roo.data,
proxy : {
xtype : 'HttpProxy',
method : 'GET',
- url : baseURL + '/Roo/Core_enum',
+ url : baseURL + '/Roo/Core_company',
xns : Roo.data,
'|xns' : 'Roo.data'
},
reader : {
xtype : 'JsonReader',
- fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
+ fields : [
+ {
+ "name":"id",
+ "type":"int"
+ },
+ {
+ "name":"name",
+ "type":"string"
+ }
+ ],
id : 'id',
root : 'data',
totalProperty : 'total',
}
}
},
- {
- xtype : 'Hidden',
- name : 'etype',
- xns : Roo.form,
- '|xns' : 'Roo.form'
- },
{
xtype : 'Hidden',
name : 'id',