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:
azaozz 2008-11-01 02:52:43 +00:00
parent 8c92b61171
commit a7c2aa7f94
2 changed files with 8 additions and 16 deletions

View File

@ -3122,7 +3122,6 @@ function screen_options($screen, $metabox = false) {
<div id="screen-options-link-wrap" class="hide-if-no-js screen-options-closed"> <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="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>
</div> </div>
<?php <?php

View File

@ -1,21 +1,14 @@
jQuery(document).ready( function($) { jQuery(document).ready( function($) {
$('#show-settings-link').click(function () { $('#show-settings-link').click(function () {
$('#screen-options-wrap').slideDown('normal', function(){ $('#screen-options-wrap').slideToggle('normal', function(){
$('#hide-settings-link').show(); if ( $(this).hasClass('screen-options-open') ) {
$('#show-settings-link').hide(); $('#show-settings-link').css({'backgroundImage':'url("images/screen-options-right.gif")'});
$('#screen-options-link-wrap').removeClass('screen-options-closed').addClass('screen-options-open'); $(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; return false;
}); });
}); });