projects
/
bootswatch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b169fbe
)
attempt to fix smooth scrolling error
author
Thomas Park
<thomas@thomaspark.me>
Sat, 9 Feb 2013 23:47:40 +0000
(18:47 -0500)
committer
Thomas Park
<thomas@thomaspark.me>
Sat, 9 Feb 2013 23:47:40 +0000
(18:47 -0500)
js/bootswatch.js
patch
|
blob
|
history
diff --git
a/js/bootswatch.js
b/js/bootswatch.js
index
66b67b2
..
07fba6b
100644
(file)
--- 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)