Fix confirmation for second bulk delete, fixes #9473

git-svn-id: http://svn.automattic.com/wordpress/trunk@10881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-04-06 22:21:45 +00:00
parent acfc07e738
commit 25c13543f2
3 changed files with 3 additions and 3 deletions

View File

@ -174,7 +174,7 @@ jQuery(document).ready( function($) {
// show warnings // show warnings
$('#doaction, #doaction2').click(function(){ $('#doaction, #doaction2').click(function(){
if ( $('select[name^="action"]').val() == 'delete' ) { if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) {
return showNotice.warn(); return showNotice.warn();
} }
}); });

File diff suppressed because one or more lines are too long

View File

@ -60,7 +60,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20090102' ); $scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20090102' );
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20090405' ); $scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20090406' );
$scripts->add_data( 'common', 'group', 1 ); $scripts->add_data( 'common', 'group', 1 );
$scripts->localize( 'common', 'commonL10n', array( $scripts->localize( 'common', 'commonL10n', array(
'warnDelete' => __("You are about to delete the selected items.\n 'Cancel' to stop, 'OK' to delete."), 'warnDelete' => __("You are about to delete the selected items.\n 'Cancel' to stop, 'OK' to delete."),