mirror of https://github.com/status-im/codimd.git
Fix to prevent hash change on click nav item on index
This commit is contained in:
parent
5751578275
commit
f2ee897699
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue