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">
|
<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
|
||||||
|
|
|
@ -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;
|
||||||
});
|
});
|
||||||
});
|
});
|
Loading…
Reference in New Issue