From c2bda4abc687461dc28bb166fdc7e6a29cfbb0d6 Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Fri, 13 Sep 2019 18:17:40 -0700 Subject: [PATCH] commento.js: confirm before deleting --- frontend/js/commento.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/js/commento.js b/frontend/js/commento.js index 7aaf067..2745f16 100644 --- a/frontend/js/commento.js +++ b/frontend/js/commento.js @@ -1041,6 +1041,10 @@ global.commentDelete = function(commentHex) { + if (!confirm("Are you sure you want to delete this comment?")) { + return; + } + var json = { "commenterToken": commenterTokenGet(), "commentHex": commentHex,