gavin19

Flair partial 2

Jun 11th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   setUserFlair: function(event)
  2.   {
  3.     event.preventDefault();
  4.     var theTitle, cssType = event.target.getAttribute("id").toString();
  5.     if (cssType.indexOf("SGSFlair-") != -1) {
  6.       cssType = cssType.replace("SGSFlair-", "");
  7.     } else {
  8.       return;
  9.     }
  10.     if (cssType) {
  11.       theTitle = SGSFlair.config.flairs[cssType]['title'];
  12.     } else {
  13.       theTitle = '';
  14.     }
  15.     var theUser = SGSFlair.user;
  16.     var userRequested = SGSFlair.userElement;
  17.    
  18.     //alert(cssType + " " + SGSFlair.user + " " + SGSFlair.modHash);
Advertisement
Add Comment
Please, Sign In to add comment