From: Alexander Moisseev Date: Sat, 15 Oct 2016 15:18:28 +0000 (+0300) Subject: [WebUI] Ask for history reset confirmation X-Git-Tag: 1.4.0~254^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1033%2Fhead;p=rspamd.git [WebUI] Ask for history reset confirmation Issue: #1027 Reported by: @fenice2 --- diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index da2c06917..7bb7cdf98 100644 --- a/interface/js/rspamd.js +++ b/interface/js/rspamd.js @@ -696,8 +696,11 @@ } }); } - // @update history log + // @reset history log $('#resetHistory').on('click', function () { + if (!confirm("Are you sure you want to reset history log?")) { + return + }; if (history) { history.destroy(); $('#historyLog').children('tbody').remove(); @@ -719,7 +722,7 @@ }); }); - // @reset history log + // @update history log $('#updateHistory').on('click', function () { getHistory(); });