Make WordPress Core

Changeset 9561


Ignore:
Timestamp:
11/07/2008 10:07:58 PM (16 years ago)
Author:
markjaquith
Message:

Remove the other tab before sliding down.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/settings-box.js

    r9545 r9561  
    11jQuery(document).ready( function($) {
    22    $('#show-settings-link').click(function () {
     3        if ( ! $('#screen-options-wrap').hasClass('screen-options-open') ) {
     4            $('#contextual-help-link-wrap').addClass('invisible');
     5        }
    36        $('#screen-options-wrap').slideToggle('fast', function(){
    47            if ( $(this).hasClass('screen-options-open') ) {
     
    912            } else {
    1013                $('#show-settings-link').css({'backgroundImage':'url("images/screen-options-right-up.gif")'});
    11                 $('#contextual-help-link-wrap').addClass('invisible');
    1214                $(this).addClass('screen-options-open');
    1315            }
     
    1618    }).parent();
    1719    $('#contextual-help-link').click(function () {
     20        if ( ! $('#contextual-help-wrap').hasClass('contextual-help-open') ) {
     21            $('#screen-options-link-wrap').addClass('invisible');
     22        }
    1823        $('#contextual-help-wrap').slideToggle('fast', function(){
    1924            if ( $(this).hasClass('contextual-help-open') ) {
     
    2328            } else {
    2429                $('#contextual-help-link').css({'backgroundImage':'url("images/screen-options-right-up.gif")'});
    25                 $('#screen-options-link-wrap').addClass('invisible');
    2630                $(this).addClass('contextual-help-open');
    2731            }
  • trunk/wp-includes/script-loader.php

    r9556 r9561  
    293293        ) );
    294294
    295         $scripts->add( 'settings-box', '/wp-admin/js/settings-box.js', array( 'jquery' ), '20081105' );
     295        $scripts->add( 'settings-box', '/wp-admin/js/settings-box.js', array( 'jquery' ), '20081107' );
    296296
    297297        $scripts->add( 'dashboard', '/wp-admin/js/dashboard.js', array( 'jquery', 'admin-comments', 'postbox', 'settings-box' ), '20081016' );
Note: See TracChangeset for help on using the changeset viewer.