summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--public/js/cover.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/public/js/cover.js b/public/js/cover.js
index 15f3e9c1..7c63e912 100644
--- a/public/js/cover.js
+++ b/public/js/cover.js
@@ -91,14 +91,18 @@ $(".masthead-nav li").click(function () {
$(this).addClass("active");
});
-$(".ui-home").click(function () {
+$(".ui-home").click(function (e) {
+ e.preventDefault();
+ e.stopPropagation();
if (!$("#home").is(':visible')) {
$(".section:visible").hide();
$("#home").fadeIn();
}
});
-$(".ui-history").click(function () {
+$(".ui-history").click(function (e) {
+ e.preventDefault();
+ e.stopPropagation();
if (!$("#history").is(':visible')) {
$(".section:visible").hide();
$("#history").fadeIn();