summaryrefslogtreecommitdiffstats
path: root/interface/js/rspamd.js
diff options
context:
space:
mode:
Diffstat (limited to 'interface/js/rspamd.js')
-rw-r--r--interface/js/rspamd.js7
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();
});