From 726cd35bd994f01bbee0f3ed316324680ba69df6 Mon Sep 17 00:00:00 2001 From: Thomas Park Date: Sat, 9 Feb 2013 18:47:40 -0500 Subject: [PATCH] attempt to fix smooth scrolling error --- js/bootswatch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/bootswatch.js b/js/bootswatch.js index 66b67b2..07fba6b 100644 --- a/js/bootswatch.js +++ b/js/bootswatch.js @@ -28,7 +28,7 @@ $(document).ready(function() { var locationPath = filterPath(location.pathname); var scrollElem = scrollableElement('html', 'body'); - $('a[href*=#]').each(function() { + $('a[href^=#]').each(function() { var thisPath = filterPath(this.pathname) || locationPath; if ( locationPath == thisPath && (location.hostname == this.hostname || !this.hostname) -- 2.39.2