mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-07 13:18:14 +02:00
git-svn-id: http://svn.automattic.com/wordpress/trunk@9561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
35 lines
1.4 KiB
JavaScript
35 lines
1.4 KiB
JavaScript
jQuery(document).ready( function($) {
|
|
$('#show-settings-link').click(function () {
|
|
if ( ! $('#screen-options-wrap').hasClass('screen-options-open') ) {
|
|
$('#contextual-help-link-wrap').addClass('invisible');
|
|
}
|
|
$('#screen-options-wrap').slideToggle('fast', function(){
|
|
if ( $(this).hasClass('screen-options-open') ) {
|
|
$('#show-settings-link').css({'backgroundImage':'url("images/screen-options-right.gif")'});
|
|
$('#contextual-help-link-wrap').removeClass('invisible');
|
|
$(this).removeClass('screen-options-open');
|
|
|
|
} else {
|
|
$('#show-settings-link').css({'backgroundImage':'url("images/screen-options-right-up.gif")'});
|
|
$(this).addClass('screen-options-open');
|
|
}
|
|
});
|
|
return false;
|
|
}).parent();
|
|
$('#contextual-help-link').click(function () {
|
|
if ( ! $('#contextual-help-wrap').hasClass('contextual-help-open') ) {
|
|
$('#screen-options-link-wrap').addClass('invisible');
|
|
}
|
|
$('#contextual-help-wrap').slideToggle('fast', function(){
|
|
if ( $(this).hasClass('contextual-help-open') ) {
|
|
$('#contextual-help-link').css({'backgroundImage':'url("images/screen-options-right.gif")'});
|
|
$('#screen-options-link-wrap').removeClass('invisible');
|
|
$(this).removeClass('contextual-help-open');
|
|
} else {
|
|
$('#contextual-help-link').css({'backgroundImage':'url("images/screen-options-right-up.gif")'});
|
|
$(this).addClass('contextual-help-open');
|
|
}
|
|
});
|
|
return false;
|
|
});
|
|
}); |