diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-10-15 18:18:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-15 18:18:28 +0300 |
commit | 85fafc57b223bba554caab2f9b6121c0582285e3 (patch) | |
tree | 3d417df68c8d9b6e83a7bef2753344967d541932 | |
parent | 48e922586cea1a47afa2e135ee78f313d4d20499 (diff) | |
download | rspamd-85fafc57b223bba554caab2f9b6121c0582285e3.tar.gz rspamd-85fafc57b223bba554caab2f9b6121c0582285e3.zip |
[WebUI] Ask for history reset confirmation
Issue: #1027
Reported by: @fenice2
-rw-r--r-- | interface/js/rspamd.js | 7 |
1 files changed, 5 insertions, 2 deletions
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(); }); |