WordPress.org

Make WordPress Core

Changeset 8752


Ignore:
Timestamp:
08/27/08 19:41:51 (7 years ago)
Author:
ryan
Message:

Show Settings for edit page form. see #7552

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-page-form.php

    r8697 r8752  
    320320<div id="poststuff"> 
    321321 
     322<div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Show Settings') ?></a> 
     323<a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Settings') ?></a></div> 
     324 
     325<div id="edit-settings" class="hide-if-js hide-if-no-js"> 
     326<div id="edit-settings-wrap"> 
     327<h5><?php _e('Show on screen') ?></h5> 
     328<div class="metabox-prefs"> 
     329<?php meta_box_prefs('page') ?> 
     330<br class="clear" /> 
     331</div></div> 
     332</div> 
     333 
    322334<div id="side-info-column" class="inner-sidebar"> 
    323335 
  • trunk/wp-admin/js/page.js

    r8691 r8752  
    1 jQuery(document).ready( function() { 
     1jQuery(document).ready( function($) { 
    22    postboxes.add_postbox_toggles('page'); 
    33    make_slugedit_clickable(); 
     
    4040        return false; 
    4141    }); 
     42 
     43    // Edit Settings 
     44    $('#show-settings-link').click(function () { 
     45        $('#edit-settings').slideDown('normal', function(){ 
     46            $('#show-settings-link').hide(); 
     47            $('#hide-settings-link').show(); 
     48             
     49        }); 
     50        $('#show-settings').addClass('show-settings-opened'); 
     51        return false; 
     52    }); 
     53     
     54    $('#hide-settings-link').click(function () { 
     55        $('#edit-settings').slideUp('normal', function(){ 
     56            $('#hide-settings-link').hide(); 
     57            $('#show-settings-link').show(); 
     58            $('#show-settings').removeClass('show-settings-opened'); 
     59        }); 
     60         
     61        return false; 
     62    }); 
    4263}); 
Note: See TracChangeset for help on using the changeset viewer.