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:
parent
8ecc21e2da
commit
d74690aa2e
@ -38,7 +38,7 @@ setCommentsList = function() {
|
|||||||
settings.data._page = pageInput.val();
|
settings.data._page = pageInput.val();
|
||||||
settings.data._url = document.location.href;
|
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 showNotice.warn() ? settings : false;
|
||||||
|
|
||||||
return settings;
|
return settings;
|
||||||
@ -348,7 +348,7 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
setCommentsList();
|
setCommentsList();
|
||||||
commentReply.init();
|
commentReply.init();
|
||||||
$('.delete a[class^="delete"]').click(function(){return false;});
|
$('span.delete a.delete').click(function(){return false;});
|
||||||
|
|
||||||
if ( typeof QTags != 'undefined' )
|
if ( typeof QTags != 'undefined' )
|
||||||
ed_reply = new QTags('ed_reply', 'replycontent', 'replycontainer', 'more');
|
ed_reply = new QTags('ed_reply', 'replycontent', 'replycontainer', 'more');
|
||||||
|
File diff suppressed because one or more lines are too long
@ -225,7 +225,7 @@ function wp_default_scripts( &$scripts ) {
|
|||||||
'l10n_print_after' => 'try{convertEntities(pwsL10n);}catch(e){};'
|
'l10n_print_after' => 'try{convertEntities(pwsL10n);}catch(e){};'
|
||||||
) );
|
) );
|
||||||
|
|
||||||
$scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20090207' );
|
$scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20090209' );
|
||||||
$scripts->add_data( 'admin-comments', 'group', 1 );
|
$scripts->add_data( 'admin-comments', 'group', 1 );
|
||||||
$scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
|
$scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
|
||||||
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
|
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user