diff --git a/docs.html b/docs.html
index 5093eb0..cacd551 100644
--- a/docs.html
+++ b/docs.html
@@ -2,6 +2,7 @@
Documentation - Papa Parse
+
diff --git a/index.html b/index.html
index 5396728..1317ae7 100644
--- a/index.html
+++ b/index.html
@@ -2,6 +2,7 @@
Papa Parse - Powerful CSV parser for Javascript
+
diff --git a/resources/js/main.js b/resources/js/main.js
index b33e5cd..b4c0150 100644
--- a/resources/js/main.js
+++ b/resources/js/main.js
@@ -40,7 +40,7 @@ $(function()
prepareDemo();
// Smooth in-page scrolling; thanks to css-tricks.com
- $('body').on('click', 'a[href^=#]:not([href=#])', function()
+ $('body').on('click', 'a[href^=#]:not([href=#])', function(event)
{
var isDemoLink = $(this).hasClass('demo-insert');
@@ -53,6 +53,7 @@ $(function()
|| location.hostname == this.hostname)
{
scrollTo(this.hash);
+ return suppress(event);
}
}).on('click', 'a[href=#]', function(event) {
$('html, body').animate({
@@ -71,7 +72,6 @@ $(function()
$('html, body').animate({
scrollTop: target.offset().top - 40
}, scrollDuration);
- return suppress(event);
}
}