1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 10:48:37 +00:00

Prevent default for linkAction (#10742) (#10743)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
John Olheiser
2020-03-16 18:41:02 -05:00
committed by GitHub
parent 0158725387
commit 54ea58ddf0

View File

@@ -2738,7 +2738,8 @@ function showAddAllPopup() {
return false; return false;
} }
function linkAction() { function linkAction(e) {
e.preventDefault();
const $this = $(this); const $this = $(this);
const redirect = $this.data('redirect'); const redirect = $this.data('redirect');
$.post($this.data('url'), { $.post($this.data('url'), {