Advertisement
Guest User

Untitled

a guest
Apr 18th, 2013
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (current != base)
  2.     {
  3.  
  4.         if (current != base + "/" && current.split("#comment-").length != 1)
  5.    
  6.         {
  7.    
  8.            
  9.    
  10.             var comment_split = current.replace(base, "").split("#comment-");
  11.    
  12.            
  13.    
  14.             location = base + "/#" + comment_split[0];
  15.    
  16.            
  17.    
  18.             return false;
  19.    
  20.            
  21.    
  22.         } else if (current != base + "/" && current.split("#").length == 1)
  23.    
  24.         {
  25.    
  26.    
  27.    
  28.             location = base + "/#" + current.replace(base, "");
  29.    
  30.            
  31.    
  32.             return false;
  33.    
  34.    
  35.    
  36.         }
  37.  
  38.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement