Make WordPress Core


Ignore:
Timestamp:
11/07/2008 03:13:50 AM (17 years ago)
Author:
azaozz
Message:

Display warning when bulk deleting posts, pages, attachments, comments, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-link-categories.php

    r9557 r9560  
    223223</div><!-- /col-container -->
    224224</div><!-- /wrap -->
    225 </div>
    226 
     225
     226<script type="text/javascript">
     227/* <![CDATA[ */
     228(function($){
     229    $(document).ready(function(){
     230        $('#doaction, #doaction2').click(function(){
     231            if ( $('select[name^="action"]').val() == 'delete' ) {
     232                var n = $('#the-list input[type="checkbox"]:checked').length;
     233                var m = n > 1 ? '<?php echo js_escape(__("You are about to delete the selected link categories.\n  'Cancel' to stop, 'OK' to delete.")); ?>' : '<?php echo js_escape(__("You are about to delete the selected link category.\n  'Cancel' to stop, 'OK' to delete.")); ?>';
     234                return showNotice.warn(m);
     235            }
     236        });
     237    });
     238})(jQuery);
     239/* ]]> */
     240</script>
    227241
    228242<?php inline_edit_term_row('link-category'); ?>
Note: See TracChangeset for help on using the changeset viewer.