aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2020-03-16 18:41:02 -0500
committerGitHub <noreply@github.com>2020-03-16 20:41:02 -0300
commit54ea58ddf03e633be9aa96ac0b7c3f70f0842833 (patch)
tree7ac8afd139abcb00870c937a9de4fd5b6131de2f
parent01587253879aace45c3295ec8841ee648509cadd (diff)
downloadgitea-54ea58ddf03e633be9aa96ac0b7c3f70f0842833.tar.gz
gitea-54ea58ddf03e633be9aa96ac0b7c3f70f0842833.zip
Prevent default for linkAction (#10742) (#10743)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
-rw-r--r--web_src/js/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index eeb6bbd8c0..30e8257b09 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -2738,7 +2738,8 @@ function showAddAllPopup() {
return false;
}
-function linkAction() {
+function linkAction(e) {
+ e.preventDefault();
const $this = $(this);
const redirect = $this.data('redirect');
$.post($this.data('url'), {