Fix to prevent hash change on click nav item on index
This commit is contained in:
parent
5751578275
commit
f2ee897699
1 changed files with 6 additions and 2 deletions
|
@ -91,14 +91,18 @@ $(".masthead-nav li").click(function () {
|
||||||
$(this).addClass("active");
|
$(this).addClass("active");
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".ui-home").click(function () {
|
$(".ui-home").click(function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
if (!$("#home").is(':visible')) {
|
if (!$("#home").is(':visible')) {
|
||||||
$(".section:visible").hide();
|
$(".section:visible").hide();
|
||||||
$("#home").fadeIn();
|
$("#home").fadeIn();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".ui-history").click(function () {
|
$(".ui-history").click(function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
if (!$("#history").is(':visible')) {
|
if (!$("#history").is(':visible')) {
|
||||||
$(".section:visible").hide();
|
$(".section:visible").hide();
|
||||||
$("#history").fadeIn();
|
$("#history").fadeIn();
|
||||||
|
|
Loading…
Reference in a new issue