Skip to content

Instantly share code, notes, and snippets.

@mkorostoff
Created March 6, 2012 14:46
Show Gist options
  • Save mkorostoff/1986636 to your computer and use it in GitHub Desktop.
Save mkorostoff/1986636 to your computer and use it in GitHub Desktop.
//Find the user roles in the default profile view, store the classes in a variable
var role_switcher = jQuery('.profile span').attr('class');
//Take those classes and apply them to the role indicator in the sidebar
jQuery('#block-views-user-profile-block-1 .role-indicator').addClass(role_switcher);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment