summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Park <thomas@thomaspark.me>2013-02-09 18:47:40 -0500
committerThomas Park <thomas@thomaspark.me>2013-02-09 18:47:40 -0500
commit726cd35bd994f01bbee0f3ed316324680ba69df6 (patch)
tree63093fb36e033756a342ee861933cc607d550ae0
parentb169fbeea6819a511498ee4ad42ad4f66eaa3e0a (diff)
attempt to fix smooth scrolling error
-rw-r--r--js/bootswatch.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/bootswatch.js b/js/bootswatch.js
index 66b67b28..07fba6bf 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)