WordPress.org

Make WordPress Core

Changeset 10882


Ignore:
Timestamp:
04/06/09 22:37:51 (6 years ago)
Author:
azaozz
Message:

Fix confirmation for second bulk delete, fixes #9473 for 2.7.2

Location:
branches/2.7/wp-admin
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-admin/categories.php

    r10049 r10882  
    295295    $(document).ready(function(){ 
    296296        $('#doaction, #doaction2').click(function(){ 
    297             if ( $('select[name^="action"]').val() == 'delete' ) { 
     297            if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) { 
    298298                var m = '<?php echo js_escape(__("You are about to delete the selected categories.\n  'Cancel' to stop, 'OK' to delete.")); ?>'; 
    299299                return showNotice.warn(m); 
  • branches/2.7/wp-admin/edit-comments.php

    r10439 r10882  
    379379    $(document).ready(function(){ 
    380380        $('#doaction, #doaction2').click(function(){ 
    381             if ( $('select[name^="action"]').val() == 'delete' ) { 
     381            if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) { 
    382382                var m = '<?php echo js_escape(__("You are about to delete the selected comments.\n  'Cancel' to stop, 'OK' to delete.")); ?>'; 
    383383                return showNotice.warn(m); 
  • branches/2.7/wp-admin/edit-link-categories.php

    r10049 r10882  
    230230    $(document).ready(function(){ 
    231231        $('#doaction, #doaction2').click(function(){ 
    232             if ( $('select[name^="action"]').val() == 'delete' ) { 
     232            if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) { 
    233233                var m = '<?php echo js_escape(__("You are about to delete the selected link categories.\n  'Cancel' to stop, 'OK' to delete.")); ?>'; 
    234234                return showNotice.warn(m); 
  • branches/2.7/wp-admin/edit-pages.php

    r10049 r10882  
    318318    $(document).ready(function(){ 
    319319        $('#doaction, #doaction2').click(function(){ 
    320             if ( $('select[name^="action"]').val() == 'delete' ) { 
     320            if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) { 
    321321                var m = '<?php echo js_escape(__("You are about to delete the selected pages.\n  'Cancel' to stop, 'OK' to delete.")); ?>'; 
    322322                return showNotice.warn(m); 
  • branches/2.7/wp-admin/edit-tags.php

    r10776 r10882  
    293293    $(document).ready(function(){ 
    294294        $('#doaction, #doaction2').click(function(){ 
    295             if ( $('select[name^="action"]').val() == 'delete' ) { 
     295            if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) { 
    296296                var m = '<?php echo js_escape(__("You are about to delete the selected tags.\n  'Cancel' to stop, 'OK' to delete.")); ?>'; 
    297297                return showNotice.warn(m); 
  • branches/2.7/wp-admin/edit.php

    r10049 r10882  
    302302    $(document).ready(function(){ 
    303303        $('#doaction, #doaction2').click(function(){ 
    304             if ( $('select[name^="action"]').val() == 'delete' ) { 
     304            if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) { 
    305305                var m = '<?php echo js_escape(__("You are about to delete the selected posts.\n  'Cancel' to stop, 'OK' to delete.")); ?>'; 
    306306                return showNotice.warn(m); 
  • branches/2.7/wp-admin/link-manager.php

    r10718 r10882  
    276276    $(document).ready(function(){ 
    277277        $('#doaction, #doaction2').click(function(){ 
    278             if ( $('select[name^="action"]').val() == 'delete' ) { 
     278            if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) { 
    279279                var m = '<?php echo js_escape(__("You are about to delete the selected links.\n  'Cancel' to stop, 'OK' to delete.")); ?>'; 
    280280                return showNotice.warn(m); 
  • branches/2.7/wp-admin/upload.php

    r10150 r10882  
    416416    $(document).ready(function(){ 
    417417        $('#doaction, #doaction2').click(function(e){ 
    418             if ( $('select[name^="action"]').val() == 'delete' ) { 
     418            if ( $('select[name="action"]').val() == 'delete' || $('select[name="action2"]').val() == 'delete' ) { 
    419419                var m = '<?php echo js_escape(__("You are about to delete the selected attachments.\n  'Cancel' to stop, 'OK' to delete.")); ?>'; 
    420420                return showNotice.warn(m); 
Note: See TracChangeset for help on using the changeset viewer.