check file exists
[Pman.Core] / Pman.js
diff --git a/Pman.js b/Pman.js
index 6bdb504..618ddda 100644 (file)
--- 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 {