Don't change text for Screen Options
git-svn-id: http://svn.automattic.com/wordpress/trunk@9454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8c92b61171
commit
a7c2aa7f94
|
@ -3122,7 +3122,6 @@ function screen_options($screen, $metabox = false) {
|
|||
|
||||
<div id="screen-options-link-wrap" class="hide-if-no-js screen-options-closed">
|
||||
<a href="#screen-options" id="show-settings-link" class="show-settings"><?php _e('Screen Options') ?></a>
|
||||
<a href="#screen-options" id="hide-settings-link" class="show-settings" style="display:none;"><?php _e('Hide Options') ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
|
|
@ -1,21 +1,14 @@
|
|||
jQuery(document).ready( function($) {
|
||||
$('#show-settings-link').click(function () {
|
||||
$('#screen-options-wrap').slideDown('normal', function(){
|
||||
$('#hide-settings-link').show();
|
||||
$('#show-settings-link').hide();
|
||||
$('#screen-options-link-wrap').removeClass('screen-options-closed').addClass('screen-options-open');
|
||||
$('#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;
|
||||
});
|
||||
|
||||
$('#hide-settings-link').click(function () {
|
||||
$('#screen-options-wrap').slideUp('normal', function(){
|
||||
$('#show-settings-link').show();
|
||||
$('#hide-settings-link').hide();
|
||||
$('#screen-options-link-wrap').removeClass('screen-options-open').addClass('screen-options-closed');
|
||||
});
|
||||
|
||||
return false;
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue