beforeload : function(st,o)
{
- o.params.isOwner = 0;
+ o.params['!comptype'] = 'OWNER';
},
loadexception : Pman.loadException
adderclick : function()
{
var cb = this;
- Pman.Dialog.Companies.show( { id: 0 }, function(data) {
+ Pman.Dialog.CoreCompanies.show( { id: 0 }, function(data) {
cb.setFromData(data);
});
}
return;
}
- if (!this.form.findField('company_id').getValue()) {
+ if (this.form.findField('company_id') && !this.form.findField('company_id').getValue()) {
Ext.MessageBox.alert("Error", "Select a Company");
return;
}
var c = ar[i];
i++;
- Pman.request({
+ new Pman.Request({
url : baseURL+'/Core/SendIntro.html',
method : 'POST',
params: c,