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