Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
masonstrap
Commits
726cd35b
Commit
726cd35b
authored
Feb 09, 2013
by
Thomas Park
Browse files
attempt to fix smooth scrolling error
parent
b169fbee
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/bootswatch.js
View file @
726cd35b
...
@@ -28,7 +28,7 @@ $(document).ready(function() {
...
@@ -28,7 +28,7 @@ $(document).ready(function() {
var
locationPath
=
filterPath
(
location
.
pathname
);
var
locationPath
=
filterPath
(
location
.
pathname
);
var
scrollElem
=
scrollableElement
(
'
html
'
,
'
body
'
);
var
scrollElem
=
scrollableElement
(
'
html
'
,
'
body
'
);
$
(
'
a[href
*
=#]
'
).
each
(
function
()
{
$
(
'
a[href
^
=#]
'
).
each
(
function
()
{
var
thisPath
=
filterPath
(
this
.
pathname
)
||
locationPath
;
var
thisPath
=
filterPath
(
this
.
pathname
)
||
locationPath
;
if
(
locationPath
==
thisPath
if
(
locationPath
==
thisPath
&&
(
location
.
hostname
==
this
.
hostname
||
!
this
.
hostname
)
&&
(
location
.
hostname
==
this
.
hostname
||
!
this
.
hostname
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment