Created
March 6, 2012 14:46
-
-
Save mkorostoff/1986636 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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