From 1d32fe52f5ca508ac4c3b0e32303b84c8808ae48 Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Thu, 6 Mar 2014 12:12:28 +0100 Subject: [PATCH] Unified comments delete confirm msg --- templates/2k11/admin/comments.inc.tpl | 2 +- templates/2k11/admin/serendipity_editor.js.tpl | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/templates/2k11/admin/comments.inc.tpl b/templates/2k11/admin/comments.inc.tpl index fc13657c..48dcb806 100644 --- a/templates/2k11/admin/comments.inc.tpl +++ b/templates/2k11/admin/comments.inc.tpl @@ -178,7 +178,7 @@
- +
diff --git a/templates/2k11/admin/serendipity_editor.js.tpl b/templates/2k11/admin/serendipity_editor.js.tpl index a58a7c0b..2455b0b7 100644 --- a/templates/2k11/admin/serendipity_editor.js.tpl +++ b/templates/2k11/admin/serendipity_editor.js.tpl @@ -965,7 +965,7 @@ var AccessifyHTML5 = function (defaults, more_fixes) { }); // Comments - $('.comments_delete').click(function() { + $('.comments_delete, .comments_multidelete').click(function() { var $msg = $(this).attr('data-delmsg'); return confirm($msg); }); @@ -979,10 +979,6 @@ var AccessifyHTML5 = function (defaults, more_fixes) { {/if} }); - $('.comments_multidelete').click(function() { - return confirm('{$CONST.COMMENTS_DELETE_CONFIRM}'); - }); - // Category icon preview // NOTE: This is just to replace the old functionality; ideally, this should // have a working no-js fallback