Pman.Tab.Group_Rights.js
[Pman.Admin] / Pman.Tab.Group_Rights.js
index 61970a9..d15e34c 100644 (file)
@@ -131,7 +131,8 @@ Pman.Tab.Group_Rights = {
                         'width' : 50,
                         renderer : function(v,x,r)
                         {
-                            return String.format('{0}',v.split('.').shift());
+                            return String.format('<span qtip="{1}">{0}</span<',
+                                v.split('.').shift(), v);
                         }
                     },
                     
@@ -149,27 +150,13 @@ Pman.Tab.Group_Rights = {
                             
                             
                             // this needs to be generated by the modules..
-                            switch(v) {
-                        
-                                 
-                                 
-                                case   'Admin.Admin_Tab':   return "Admin Tab";  
-                                case   'Core.Person': return "Person";
-                                case   'Core.Offices': return "Offices";
-                                case   'Core.Companies': return "Companies";
-                                    
-                                case   'Core.Staff': return "Staff";
-                                case   'Core.Groups': return "Groups";
-                               
-                                case   'Core.Events':   return "Events";
-                                default : 
-                                    if (typeof(Pman.rightNames[v]) == 'string' && Pman.rightNames[v].length) {
-                                        return String.format('{0}',Pman.rightNames[v]);
-                                    }
-                                    
-                                    return '???' + v;
-                                     
+                            /*
+                            if (typeof(Pman.rightNames[v]) == 'string' && Pman.rightNames[v].length) {
+                                return String.format('{0}',Pman.rightNames[v]);
                             }
+                            */
+                            return '???' + v;
+                             
                             
                             
                         }