Fix confirmation for second bulk delete, fixes #9473 for 2.7.2
git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10882 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ab394b7665
commit
ddaf00492d
|
@ -294,7 +294,7 @@ if ( $page_links )
|
|||
(function($){
|
||||
$(document).ready(function(){
|
||||
$('#doaction, #doaction2').click(function(){
|
||||
if ( $('select[name^="action"]').val() == 'delete' ) {
|
||||
if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) {
|
||||
var m = '<?php echo js_escape(__("You are about to delete the selected categories.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
|
||||
return showNotice.warn(m);
|
||||
}
|
||||
|
|
|
@ -378,7 +378,7 @@ if ( $page_links )
|
|||
(function($){
|
||||
$(document).ready(function(){
|
||||
$('#doaction, #doaction2').click(function(){
|
||||
if ( $('select[name^="action"]').val() == 'delete' ) {
|
||||
if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) {
|
||||
var m = '<?php echo js_escape(__("You are about to delete the selected comments.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
|
||||
return showNotice.warn(m);
|
||||
}
|
||||
|
|
|
@ -229,7 +229,7 @@ if ( $page_links )
|
|||
(function($){
|
||||
$(document).ready(function(){
|
||||
$('#doaction, #doaction2').click(function(){
|
||||
if ( $('select[name^="action"]').val() == 'delete' ) {
|
||||
if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) {
|
||||
var m = '<?php echo js_escape(__("You are about to delete the selected link categories.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
|
||||
return showNotice.warn(m);
|
||||
}
|
||||
|
|
|
@ -317,7 +317,7 @@ endif; // posts;
|
|||
(function($){
|
||||
$(document).ready(function(){
|
||||
$('#doaction, #doaction2').click(function(){
|
||||
if ( $('select[name^="action"]').val() == 'delete' ) {
|
||||
if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) {
|
||||
var m = '<?php echo js_escape(__("You are about to delete the selected pages.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
|
||||
return showNotice.warn(m);
|
||||
}
|
||||
|
|
|
@ -292,7 +292,7 @@ else
|
|||
(function($){
|
||||
$(document).ready(function(){
|
||||
$('#doaction, #doaction2').click(function(){
|
||||
if ( $('select[name^="action"]').val() == 'delete' ) {
|
||||
if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) {
|
||||
var m = '<?php echo js_escape(__("You are about to delete the selected tags.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
|
||||
return showNotice.warn(m);
|
||||
}
|
||||
|
|
|
@ -301,7 +301,7 @@ if ( $page_links )
|
|||
(function($){
|
||||
$(document).ready(function(){
|
||||
$('#doaction, #doaction2').click(function(){
|
||||
if ( $('select[name^="action"]').val() == 'delete' ) {
|
||||
if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) {
|
||||
var m = '<?php echo js_escape(__("You are about to delete the selected posts.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
|
||||
return showNotice.warn(m);
|
||||
}
|
||||
|
|
|
@ -275,7 +275,7 @@ if ( $links ) {
|
|||
(function($){
|
||||
$(document).ready(function(){
|
||||
$('#doaction, #doaction2').click(function(){
|
||||
if ( $('select[name^="action"]').val() == 'delete' ) {
|
||||
if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) {
|
||||
var m = '<?php echo js_escape(__("You are about to delete the selected links.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
|
||||
return showNotice.warn(m);
|
||||
}
|
||||
|
|
|
@ -415,7 +415,7 @@ if ( $page_links )
|
|||
(function($){
|
||||
$(document).ready(function(){
|
||||
$('#doaction, #doaction2').click(function(e){
|
||||
if ( $('select[name^="action"]').val() == 'delete' ) {
|
||||
if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) {
|
||||
var m = '<?php echo js_escape(__("You are about to delete the selected attachments.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
|
||||
return showNotice.warn(m);
|
||||
} else if ( $('select[name^="action"]').val() == 'attach' ) {
|
||||
|
|
Loading…
Reference in New Issue