diff options
author | jaqra <48099350+jaqra@users.noreply.github.com> | 2019-10-25 14:06:03 +0300 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-10-25 12:06:03 +0100 |
commit | c34e58fc008d53a5ec92cadadab2b13fb4e0ae94 (patch) | |
tree | 74aa59a93c5c56baddf77306ad837370b0b8e07d /public | |
parent | 560a511a352424ace28163c40c3278b45de2e0bc (diff) | |
download | gitea-c34e58fc008d53a5ec92cadadab2b13fb4e0ae94.tar.gz gitea-c34e58fc008d53a5ec92cadadab2b13fb4e0ae94.zip |
Prevent chrome download page with alt + click (#8669)
Diffstat (limited to 'public')
-rw-r--r-- | public/js/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js index cf19bf71a0..e76e993a1d 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -3283,6 +3283,8 @@ function initIssueList() { $(".menu a.label-filter-item").each(function() { $(this).click(function(e) { if (e.altKey) { + e.preventDefault(); + const href = $(this).attr("href"); const id = $(this).data("label-id"); |