diff --git a/data/web/js/site/quarantine.js b/data/web/js/site/quarantine.js index 80eb1c14..9cec200d 100644 --- a/data/web/js/site/quarantine.js +++ b/data/web/js/site/quarantine.js @@ -130,7 +130,7 @@ jQuery(function($){ $('body').on('click', '.show_qid_info', function (e) { e.preventDefault(); - var qitem = $(this).data('item'); + var qitem = $(this).attr('data-item'); var qError = $("#qid_error"); $('#qidDetailModal').modal('show'); @@ -146,6 +146,10 @@ jQuery(function($){ $(this).attr("data-item", qitem); }); + $("#quick_download_link").attr("onclick", "window.open('/inc/ajax/qitem_details.php?id=" + qitem + "&eml', '_blank')"); + $("#quick_release_link").attr("onclick", "window.open('/inc/ajax/qitem_details.php?id=" + qitem + "&quick_release', '_blank')"); + $("#quick_delete_link").attr("onclick", "window.open('/inc/ajax/qitem_details.php?id=" + qitem + "&quick_delete', '_blank')"); + $('#qid_detail_subj').text(data.subject); $('#qid_detail_hfrom').text(data.header_from); $('#qid_detail_efrom').text(data.env_from); diff --git a/data/web/modals/quarantine.php b/data/web/modals/quarantine.php index 6f192a19..36500122 100644 --- a/data/web/modals/quarantine.php +++ b/data/web/modals/quarantine.php @@ -64,10 +64,10 @@ if (!isset($_SESSION['mailcow_cc_role'])) {