From: Vsevolod Stakhov Date: Wed, 1 Feb 2017 18:32:17 +0000 (+0000) Subject: [WebUI] Unify send data functions X-Git-Tag: 1.5.0~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93452ca72cc2d12cef7bd534bcb4ca2d8d5f0166;p=thirdparty%2Frspamd.git [WebUI] Unify send data functions --- diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index 748c63d355..1490c927c9 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -164,7 +164,22 @@ define(['jquery', 'd3pie', 'visibility', 'app/stats', 'app/graph', 'app/config', $('#progress').hide(); } + function alertMessage (alertState, alertText) { + if ($('.alert').is(':visible')) { + $(alert).hide().remove(); + } + var alert = $('