[Web] Fix tooltips in quarantine

master
andryyy 2020-03-05 13:09:38 +01:00
parent 41db65979d
commit d629170b95
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 2 additions and 1 deletions

View File

@ -164,8 +164,9 @@ jQuery(function($){
if (value.score > 0) highlightClass = 'negative' if (value.score > 0) highlightClass = 'negative'
else if (value.score < 0) highlightClass = 'positive' else if (value.score < 0) highlightClass = 'positive'
else highlightClass = 'neutral' else highlightClass = 'neutral'
$('#qid_detail_symbols').append('<span class="rspamd-symbol ' + highlightClass + '" title="' + (value.options ? value.options.join(', ') : '') + '">' + value.name + ' (<span class="score">' + value.score + '</span>)</span>'); $('#qid_detail_symbols').append('<span data-toggle="tooltip" class="rspamd-symbol ' + highlightClass + '" title="' + (value.options ? value.options.join(', ') : '') + '">' + value.name + ' (<span class="score">' + value.score + '</span>)</span>');
}); });
$('[data-toggle="tooltip"]').tooltip()
} }
$('#qid_detail_recipients').html(''); $('#qid_detail_recipients').html('');