mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-02 16:59:35 +01:00
268c7cdd71
git-svn-id: http://svn.automattic.com/wordpress/trunk@9545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
31 lines
1.3 KiB
JavaScript
31 lines
1.3 KiB
JavaScript
jQuery(document).ready( function($) {
|
|
$('#show-settings-link').click(function () {
|
|
$('#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")'});
|
|
$('#contextual-help-link-wrap').addClass('invisible');
|
|
$(this).addClass('screen-options-open');
|
|
}
|
|
});
|
|
return false;
|
|
}).parent();
|
|
$('#contextual-help-link').click(function () {
|
|
$('#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")'});
|
|
$('#screen-options-link-wrap').addClass('invisible');
|
|
$(this).addClass('contextual-help-open');
|
|
}
|
|
});
|
|
return false;
|
|
});
|
|
}); |