2008-09-25 21:05:52 -04:00
|
|
|
jQuery(document).ready( function($) {
|
2008-09-28 00:11:27 -04:00
|
|
|
$('#show-settings-link').click(function () {
|
2008-11-07 17:07:58 -05:00
|
|
|
if ( ! $('#screen-options-wrap').hasClass('screen-options-open') ) {
|
|
|
|
$('#contextual-help-link-wrap').addClass('invisible');
|
|
|
|
}
|
2008-11-06 03:13:50 -05:00
|
|
|
$('#screen-options-wrap').slideToggle('fast', function(){
|
2008-10-31 22:52:43 -04:00
|
|
|
if ( $(this).hasClass('screen-options-open') ) {
|
|
|
|
$('#show-settings-link').css({'backgroundImage':'url("images/screen-options-right.gif")'});
|
2008-11-06 03:13:50 -05:00
|
|
|
$('#contextual-help-link-wrap').removeClass('invisible');
|
2008-10-31 22:52:43 -04:00
|
|
|
$(this).removeClass('screen-options-open');
|
2008-11-06 03:13:50 -05:00
|
|
|
|
2008-10-31 22:52:43 -04:00
|
|
|
} else {
|
|
|
|
$('#show-settings-link').css({'backgroundImage':'url("images/screen-options-right-up.gif")'});
|
|
|
|
$(this).addClass('screen-options-open');
|
|
|
|
}
|
2008-10-01 21:32:27 -04:00
|
|
|
});
|
2008-09-25 21:05:52 -04:00
|
|
|
return false;
|
2008-11-06 03:13:50 -05:00
|
|
|
}).parent();
|
|
|
|
$('#contextual-help-link').click(function () {
|
2008-11-07 17:07:58 -05:00
|
|
|
if ( ! $('#contextual-help-wrap').hasClass('contextual-help-open') ) {
|
|
|
|
$('#screen-options-link-wrap').addClass('invisible');
|
|
|
|
}
|
2008-11-06 03:13:50 -05:00
|
|
|
$('#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;
|
2008-09-25 21:05:52 -04:00
|
|
|
});
|
|
|
|
});
|