WordPress.org

Make WordPress Core

Changeset 8753


Ignore:
Timestamp:
08/27/08 19:49:08 (6 years ago)
Author:
ryan
Message:

Show Settings for edit link form. see #7552

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r8700 r8753  
    303303<div id="poststuff"> 
    304304 
     305<div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Show Settings') ?></a> 
     306<a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Settings') ?></a></div> 
     307 
     308<div id="edit-settings" class="hide-if-js hide-if-no-js"> 
     309<div id="edit-settings-wrap"> 
     310<h5><?php _e('Show on screen') ?></h5> 
     311<div class="metabox-prefs"> 
     312<?php meta_box_prefs('link') ?> 
     313<br class="clear" /> 
     314</div></div> 
     315</div> 
     316 
    305317<div id="side-info-column" class="inner-sidebar"> 
    306318<?php  
  • trunk/wp-admin/js/link.js

    r8691 r8753  
    1 jQuery(document).ready( function() { 
     1jQuery(document).ready( function($) { 
    22    // close postboxes that should be closed 
    33    jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); 
     
    4949    } ); 
    5050    jQuery('.categorychecklist :checkbox').change( syncChecks ).filter( ':checked' ).change(); 
     51 
     52    // Edit Settings 
     53    $('#show-settings-link').click(function () { 
     54        $('#edit-settings').slideDown('normal', function(){ 
     55            $('#show-settings-link').hide(); 
     56            $('#hide-settings-link').show(); 
     57             
     58        }); 
     59        $('#show-settings').addClass('show-settings-opened'); 
     60        return false; 
     61    }); 
     62     
     63    $('#hide-settings-link').click(function () { 
     64        $('#edit-settings').slideUp('normal', function(){ 
     65            $('#hide-settings-link').hide(); 
     66            $('#show-settings-link').show(); 
     67            $('#show-settings').removeClass('show-settings-opened'); 
     68        }); 
     69         
     70        return false; 
     71    }); 
    5172}); 
Note: See TracChangeset for help on using the changeset viewer.