From 93452ca72cc2d12cef7bd534bcb4ca2d8d5f0166 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 1 Feb 2017 18:32:17 +0000 Subject: [PATCH] [WebUI] Unify send data functions --- interface/js/app/rspamd.js | 86 +++++++++++++++++++++++++++++++------- 1 file changed, 70 insertions(+), 16 deletions(-) diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index 748c63d35..1490c927c 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 = $('