Show Settings for edit page form. see #7552

git-svn-id: https://develop.svn.wordpress.org/trunk@8752 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-08-27 19:41:51 +00:00
parent 72e438ba52
commit 4d741bad16
2 changed files with 34 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
jQuery(document).ready( function() {
jQuery(document).ready( function($) {
postboxes.add_postbox_toggles('page');
make_slugedit_clickable();
@@ -39,4 +39,25 @@ jQuery(document).ready( function() {
jQuery('#curtime').slideDown("normal");
return false;
});
// 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;
});
});