mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
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");
|
||||
});
|
||||
|
||||
$(".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 a new issue