X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.js;h=618ddda7ff237fa3d3148cf63355dec3767847bf;hp=6bdb504108fa59d61b9a1b461589afa2318bf358;hb=8cd2a9237c684aa16bc21e3ac6d3793c49c65400;hpb=850f656ee966f7cf848396daac219ca1588ea2cd diff --git a/Pman.js b/Pman.js index 6bdb5041..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(); @@ -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 {