From 96616e6973d1eb0bd77c6e0ad3d39e9eb93db514 Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 3 Dec 2020 22:35:59 +0100 Subject: [PATCH] [Web] Remove qid details in overview when an error occured --- data/web/js/site/quarantine.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/data/web/js/site/quarantine.js b/data/web/js/site/quarantine.js index 9cec200d..73e636ee 100644 --- a/data/web/js/site/quarantine.js +++ b/data/web/js/site/quarantine.js @@ -219,6 +219,15 @@ jQuery(function($){ }, error: function(data){ if (typeof data.error !== 'undefined') { + $('#qid_detail_subj').text('-'); + $('#qid_detail_hfrom').text('-'); + $('#qid_detail_efrom').text('-'); + $('#qid_detail_score').html('-'); + $('#qid_detail_recipients').html('-'); + $('#qid_detail_symbols').html('-'); + $('#qid_detail_fuzzy').html('-'); + $('#qid_detail_text').text('-'); + $('#qid_detail_text_from_html').text('-'); qError.text("Error loading quarantine item"); qError.show(); }