Make WordPress Core


Ignore:
Timestamp:
02/09/2009 10:46:27 PM (18 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/edit-comments.dev.js

    r10522 r10531  
    3939                settings.data._url = document.location.href;
    4040
    41                 if ( 'undefined' != showNotice )
     41                if ( 'undefined' != showNotice && settings.data.action && settings.data.action == 'delete-comment' && !settings.data.spam )
    4242                        return showNotice.warn() ? settings : false;
    4343
     
    349349        setCommentsList();
    350350        commentReply.init();
    351         $('.delete a[class^="delete"]').click(function(){return false;});
     351        $('span.delete a.delete').click(function(){return false;});
    352352
    353353        if ( typeof QTags != 'undefined' )
Note: See TracChangeset for help on using the changeset viewer.