WordPress.org

Make WordPress Core

Changeset 3651


Ignore:
Timestamp:
03/21/06 00:25:58 (8 years ago)
Author:
ryan
Message:

Put categories dbx box up top and open. fixes #2493

Location:
trunk
Files:
2 edited

Legend:

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

    r3560 r3651  
    6868<div id="moremeta"> 
    6969<div id="grabit" class="dbx-group"> 
     70 
     71<fieldset id="categorydiv" class="dbx-box"> 
     72<h3 class="dbx-handle"><?php _e('Categories') ?></h3> 
     73<div class="dbx-content"> 
     74<p id="jaxcat"></p> 
     75<div id="categorychecklist"><?php dropdown_categories(get_settings('default_category')); ?></div></div> 
     76</fieldset> 
    7077 
    7178<fieldset id="commentstatusdiv" class="dbx-box"> 
     
    8895<h3 class="dbx-handle"><?php _e('Post slug') ?></h3>  
    8996<div class="dbx-content"><input name="post_name" type="text" size="13" id="post_name" value="<?php echo $post->post_name ?>" /></div> 
    90 </fieldset> 
    91  
    92 <fieldset id="categorydiv" class="dbx-box"> 
    93 <h3 class="dbx-handle"><?php _e('Categories') ?></h3> 
    94 <div class="dbx-content"> 
    95 <p id="jaxcat"></p> 
    96 <div id="categorychecklist"><?php dropdown_categories(get_settings('default_category')); ?></div></div> 
    9797</fieldset> 
    9898 
  • trunk/wp-includes/js/dbx-key.js

    r3313 r3651  
    2121        ); 
    2222 
     23    // Boxes are closed by default. Open the Category box if the cookie isn't already set. 
     24    var catdiv = document.getElementById('categorydiv'); 
     25    if ( catdiv ) { 
     26        var button = catdiv.getElementsByTagName('A')[0]; 
     27        if ( dbx.cookiestate == null && /dbx\-toggle\-closed/.test(button.className) ) 
     28            meta.toggleBoxState(button, true); 
     29    } 
     30 
    2331    var advanced = new dbxGroup( 
    2432        'advancedstuff',        // container ID [/-_a-zA-Z0-9/] 
Note: See TracChangeset for help on using the changeset viewer.