return;
}
if (!data || !data.id) {
- Pman.Dialog.Companies.show( { id : 0, isOwner : 1, comptype: 'OWNER' }, function(data) {
+ Pman.Dialog.CoreCompanies.show( { id : 0, comptype: 'OWNER' }, function(data) {
+ Roo.log("company dialog returned");
+ Roo.log(data);
forceCompany(data);
});
return;
Pman.Login.authUser.company_id_id = data.id;
Pman.Login.authUser.company_id = data.id;
Pman.Login.authUser.company_id_name = data.name;
+ Roo.log("forcing admin");
forceAdmin();
}
},
failure: function(act) {
+ Roo.log(act);
+ var msg = '';
+ try {
+ msg = act.errorMsg;
+ } catch(e) {
+ msg = "Error deleting";
+ }
tab.grid.getView().mainWrap.unmask();
- Roo.MessageBox.alert("Error", "Error Deleting");
+ Roo.MessageBox.alert("Error", msg);
}
});
}
if (typeof(obj.parent) == 'undefined') {
- console.log("Parent is undefined");
- console.log(obj);
+ Roo.log("Parent is undefined");
+ Roo.log(obj);
obj.disabled = true;
return;
}
if (obj.parent === false) {
obj.disabled = true;
- console.log('ignoring top level object (as parent===false found)');
- console.log(obj);
+ Roo.log('ignoring top level object (as parent===false found)');
+ Roo.log(obj);
return;
}
// this is an error condition - the parent does not exist..