Browse Source

[Web] Remove qid details in overview when an error occured

andryyy 4 years ago
parent
commit
96616e6973
1 changed files with 9 additions and 0 deletions
  1. 9 0
      data/web/js/site/quarantine.js

+ 9 - 0
data/web/js/site/quarantine.js

@@ -219,6 +219,15 @@ jQuery(function($){
       },
       },
       error: function(data){
       error: function(data){
         if (typeof data.error !== 'undefined') {
         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.text("Error loading quarantine item");
           qError.show();
           qError.show();
         }
         }