Created
April 5, 2014 09:44
-
-
Save lightsuner/9989728 to your computer and use it in GitHub Desktop.
This file contains 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
$('body').on('activate.bs.scrollspy', function(e) { | |
var hash = $(e.target).find('a').attr('href'); | |
if(history.pushState) { | |
history.pushState({}, "", hash); | |
} else { | |
// Uncomment this for ie8 or ie9 | |
//window.location.hash = hash; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment