X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.js;h=618ddda7ff237fa3d3148cf63355dec3767847bf;hp=0a98ea710d462643f2c3ab32fd27d07da42be193;hb=8cd2a9237c684aa16bc21e3ac6d3793c49c65400;hpb=f840d9f7ffb4c4ff77b99d6ed4757cc1a5260690 diff --git a/Pman.js b/Pman.js index 0a98ea71..618ddda7 100644 --- a/Pman.js +++ b/Pman.js @@ -358,7 +358,7 @@ Pman = new Roo.Document( Pman.Dialog.PersonStaff.show( { id : 0, - company_id : Pman.Login.authUser.company_id_id * 1, + company_id : Pman.Login.authUser.company_id * 1, company_id_name : Pman.Login.authUser.company_id_name }, function(data) { forceAdmin(data); @@ -366,6 +366,7 @@ Pman = new Roo.Document( ); return; } + Roo.state.Manager.set('Pman.Login.username', data.email), window.onbeforeunload = false; document.location = baseURL + '?ts=' + Math.random(); @@ -393,7 +394,7 @@ Pman = new Roo.Document( if (Pman.Login.authUser.id < 0) { // admin company has been created - create the user.. - if (Pman.Login.authUser.company_id_id* 1 > 0) { + if (Pman.Login.authUser.company_id* 1 > 0) { forceAdmin(); return; } @@ -550,7 +551,7 @@ Pman = new Roo.Document( genericDelete : function(tab,tbl) { var r = []; - + var s = tab.grid.getSelectionModel().getSelections(); if (!s.length) { @@ -592,6 +593,7 @@ Pman = new Roo.Document( }, failure: function(act) { + Roo.log(act); var msg = ''; try { @@ -933,13 +935,11 @@ Pman = new Roo.Document( // honour DEPRICATED permname setings.. // new code should use PART name, and matching permissions. if (this.permname && this.permname.length) { - Roo.log(this.permname); if (!Pman.hasPerm(this.permname, 'S')) { return; } } - Roo.log(this); this.add(this.parent.layout, this.region); this.el = this.layout; @@ -957,7 +957,7 @@ Pman = new Roo.Document( // Roo.log("CALLING XComponent register with : " + obj.name); - + Roo.log(obj); // this will call xregister as it's the on.register handler.. Roo.XComponent.register(obj.isTop ? obj : Roo.apply(obj.module, obj));