WordPress.org

Make WordPress Core

Ticket #6217: postbox.patch

File postbox.patch, 626 bytes (added by azaozz, 10 years ago)
  • wp-admin/js/postbox.js

     
    11function add_postbox_toggles(page) {
    22        jQuery('.postbox h3').prepend('<a class="togbox">+</a> ');
    3         jQuery('.togbox').click( function() { jQuery(jQuery(this).parent().parent().get(0)).toggleClass('closed'); save_postboxes_state(page); } );
     3        jQuery('.postbox h3').click( function() { jQuery(jQuery(this).parent().get(0)).toggleClass('closed'); save_postboxes_state(page); } );
    44}
    55
    66function save_postboxes_state(page) {