Pman.Tab.PersonList.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 16 Dec 2010 03:04:56 +0000 (11:04 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 16 Dec 2010 03:04:56 +0000 (11:04 +0800)
Pman.Tab.PersonList.js

index 4274ed8..30bc1f0 100644 (file)
@@ -387,7 +387,7 @@ Pman.Tab.PersonList.prototype = {
                     dg.show( s[0].data,refreshPager);
                  }
             }, 
-            {
+         /*   {
                 text: "Toogle Active",
                 cls: 'x-btn-text-icon',
                 icon:   rootURL + '/Pman/templates/images/trash.gif',
@@ -434,10 +434,11 @@ Pman.Tab.PersonList.prototype = {
                 }
                 
             }, 
+            */
             {
                 text: "Delete",
                 cls: 'x-btn-text-icon',
-                hidden : (this.permName == 'Core.Staff') ||  !Pman.hasPerm('Core.Person', 'D') || this.hideDelete,    
+                hidden : !Pman.hasPerm('Core.Person', 'D'),    
                 icon: rootURL + '/Pman/templates/images/trash.gif',
                 handler : function(){
                     Pman.genericDelete(_this, 'Person');