]> source.dussan.org Git - gitea.git/commitdiff
Prevent chrome download page with alt + click (#8669)
authorjaqra <48099350+jaqra@users.noreply.github.com>
Fri, 25 Oct 2019 11:06:03 +0000 (14:06 +0300)
committerzeripath <art27@cantab.net>
Fri, 25 Oct 2019 11:06:03 +0000 (12:06 +0100)
public/js/index.js

index cf19bf71a03647e4d6cfed72b5de18eee0be93af..e76e993a1d83e26b9ad6e10ab341752be870031f 100644 (file)
@@ -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");