Show Settings for edit link form. see #7552
git-svn-id: http://svn.automattic.com/wordpress/trunk@8753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
49b3784cbc
commit
18a0bc103f
|
@ -302,6 +302,18 @@ wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
|
|||
|
||||
<div id="poststuff">
|
||||
|
||||
<div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Show Settings') ?></a>
|
||||
<a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Settings') ?></a></div>
|
||||
|
||||
<div id="edit-settings" class="hide-if-js hide-if-no-js">
|
||||
<div id="edit-settings-wrap">
|
||||
<h5><?php _e('Show on screen') ?></h5>
|
||||
<div class="metabox-prefs">
|
||||
<?php meta_box_prefs('link') ?>
|
||||
<br class="clear" />
|
||||
</div></div>
|
||||
</div>
|
||||
|
||||
<div id="side-info-column" class="inner-sidebar">
|
||||
<?php
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
jQuery(document).ready( function() {
|
||||
jQuery(document).ready( function($) {
|
||||
// close postboxes that should be closed
|
||||
jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');
|
||||
|
||||
|
@ -48,4 +48,25 @@ jQuery(document).ready( function() {
|
|||
return false;
|
||||
} );
|
||||
jQuery('.categorychecklist :checkbox').change( syncChecks ).filter( ':checked' ).change();
|
||||
|
||||
// Edit Settings
|
||||
$('#show-settings-link').click(function () {
|
||||
$('#edit-settings').slideDown('normal', function(){
|
||||
$('#show-settings-link').hide();
|
||||
$('#hide-settings-link').show();
|
||||
|
||||
});
|
||||
$('#show-settings').addClass('show-settings-opened');
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#hide-settings-link').click(function () {
|
||||
$('#edit-settings').slideUp('normal', function(){
|
||||
$('#hide-settings-link').hide();
|
||||
$('#show-settings-link').show();
|
||||
$('#show-settings').removeClass('show-settings-opened');
|
||||
});
|
||||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue