Created
August 25, 2014 02:55
-
-
Save egeste/c768b903173d48fcf5c8 to your computer and use it in GitHub Desktop.
Allow "/" in IDs for bootstrap scrollspy
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
refresh = $.fn.scrollspy.Constructor.prototype.refresh.toString() | |
replace = '''$('[id="' + href.replace(/^#/, '') + '"]')''' | |
newRefresh = refresh.replace '$(href)', replace | |
eval "$.fn.scrollspy.Constructor.prototype.refresh = #{newRefresh}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment