WordPress/wp-admin/js/settings-box.js
2008-11-01 02:52:43 +00:00

14 lines
533 B
JavaScript

jQuery(document).ready( function($) {
$('#show-settings-link').click(function () {
$('#screen-options-wrap').slideToggle('normal', function(){
if ( $(this).hasClass('screen-options-open') ) {
$('#show-settings-link').css({'backgroundImage':'url("images/screen-options-right.gif")'});
$(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;
});
});