diff options
author | John Olheiser <john.olheiser@gmail.com> | 2020-03-16 16:13:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-16 16:13:41 -0500 |
commit | c7f3d1627f32cee1a77b758a8e48922f99f7dbd4 (patch) | |
tree | 4f4f5695fb8ef590c6612bd52693f975e704a1d0 /web_src/js | |
parent | 19ebe2b956f5df49702805502a7d973222a87807 (diff) | |
download | gitea-c7f3d1627f32cee1a77b758a8e48922f99f7dbd4.tar.gz gitea-c7f3d1627f32cee1a77b758a8e48922f99f7dbd4.zip |
Prevent default for linkAction (#10742)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'web_src/js')
-rw-r--r-- | web_src/js/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index cd13372b42..76e006e51d 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -2720,7 +2720,8 @@ function showAddAllPopup() { return false; } -function linkAction() { +function linkAction(e) { + e.preventDefault(); const $this = $(this); const redirect = $this.data('redirect'); $.post($this.data('url'), { |