Don't ask for confirmation when marking a comment as spam

git-svn-id: https://develop.svn.wordpress.org/trunk@10531 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-02-09 22:46:27 +00:00
parent 8ecc21e2da
commit d74690aa2e
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ setCommentsList = function() {
settings.data._page = pageInput.val();
settings.data._url = document.location.href;
if ( 'undefined' != showNotice )
if ( 'undefined' != showNotice && settings.data.action && settings.data.action == 'delete-comment' && !settings.data.spam )
return showNotice.warn() ? settings : false;
return settings;
@@ -348,7 +348,7 @@ $(document).ready(function(){
setCommentsList();
commentReply.init();
$('.delete a[class^="delete"]').click(function(){return false;});
$('span.delete a.delete').click(function(){return false;});
if ( typeof QTags != 'undefined' )
ed_reply = new QTags('ed_reply', 'replycontent', 'replycontainer', 'more');