From ba3adb48d9ad1ab30318c96b217104300f92778a Mon Sep 17 00:00:00 2001 From: Michael Long <mlong@mlong.us> Date: Sun, 25 Oct 2020 20:10:05 -0700 Subject: [PATCH] Confirm with user before adding someone to twitlist --- webv4/components/twit-button.xjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webv4/components/twit-button.xjs b/webv4/components/twit-button.xjs index 94af80f7db..d9ce9178d0 100644 --- a/webv4/components/twit-button.xjs +++ b/webv4/components/twit-button.xjs @@ -1,4 +1,4 @@ <? var _bs = locale.get('button_block_sender', 'page_forum'); ?> -<button id="bsb-%s" class="btn btn-default icon" aria-label="<? write(_bs); ?>" title="<? write(_bs); ?>" onclick="blockSender('%s', '%s', '%s')"> +<button id="bsb-%s" class="btn btn-default icon" aria-label="<? write(_bs); ?>" title="<? write(_bs); ?>" onclick="if (confirm('Permanently block this sender?')) { blockSender('%s', '%s', '%s') }"> <span class="glyphicon glyphicon-ban-circle"></span> </button> \ No newline at end of file -- GitLab