Fix to prevent hash change on click nav item on index

This commit is contained in:
Wu Cheng-Han 2017-01-16 12:04:11 +08:00
parent 5751578275
commit f2ee897699

View file

@ -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();