]> source.dussan.org Git - gitea.git/commitdiff
Prevent default for linkAction (#10742) (#10743)
authorJohn Olheiser <john.olheiser@gmail.com>
Mon, 16 Mar 2020 23:41:02 +0000 (18:41 -0500)
committerGitHub <noreply@github.com>
Mon, 16 Mar 2020 23:41:02 +0000 (20:41 -0300)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
web_src/js/index.js

index eeb6bbd8c065771473d7778766fb26a548363b33..30e8257b09dde78af2d4defcffd29e61f3623ff6 100644 (file)
@@ -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'), {