Unified comments delete confirm msg

This commit is contained in:
Matthias Mees 2014-03-06 12:12:28 +01:00
parent caeec11624
commit 1d32fe52f5
2 changed files with 2 additions and 6 deletions

View File

@ -178,7 +178,7 @@
<div class="form_buttons">
<input class="invert_selection" name="toggle" type="button" value="{$CONST.INVERT_SELECTIONS}">
<input class="state_cancel comments_multidelete" name="toggle" type="submit" value="{$CONST.DELETE}">
<input class="state_cancel comments_multidelete" name="toggle" type="submit" value="{$CONST.DELETE}" data-delmsg="{$CONST.COMMENTS_DELETE_CONFIRM}">
<input name="serendipity[togglemoderate]" type="submit" value="{$CONST.APPROVE}">
</div>
</form>

View File

@ -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