Make WordPress Core


Ignore:
Timestamp:
10/21/2008 04:55:38 AM (17 years ago)
Author:
markjaquith
Message:

Send togbox to Hades. @ryan: size 8.5 -- something with sapphires.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/postbox.js

    r9103 r9262  
    22    postboxes = {
    33        add_postbox_toggles : function(page,args) {
    4             $('.postbox h3').before('<a class="togbox">+</a> ');
    5             $('.postbox h3, .postbox a.togbox').click( function() {
     4            $('.postbox h3').click( function() {
    65                $($(this).parent().get(0)).toggleClass('closed');
    76                postboxes.save_state(page);
     
    98            $('.postbox h3 a').click( function(e) {
    109                e.stopPropagation();
    11             } );
    12 
    13             $('.hide-postbox-tog').click( function() {
    14                 var box = jQuery(this).val();
    15                 if ( jQuery(this).attr('checked') ) {
    16                     jQuery('#' + box).show();
    17                     if ( $.isFunction( postboxes.onShow ) ) {
    18                         postboxes.onShow( box );
    19                     }
    20                 } else {
    21                     jQuery('#' + box).hide();
    22                 }
    23                 postboxes.save_state(page);
    2410            } );
    2511
Note: See TracChangeset for help on using the changeset viewer.