Make WordPress Core


Ignore:
Timestamp:
01/29/2009 07:00:00 AM (17 years ago)
Author:
azaozz
Message:

Make simple form validation and ajax-add new categories compatible with jQuery 1.3.1

File:
1 edited

Legend:

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

    r10259 r10457  
    114114 */
    115115function link_categories_meta_box($link) { ?>
     116<ul id="category-tabs">
     117    <li class="ui-tabs-selected"><a href="#categories-all"><?php _e( 'All Categories' ); ?></a></li>
     118    <li class="hide-if-no-js"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li>
     119</ul>
     120
     121<div id="categories-all" class="ui-tabs-panel">
     122    <ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
     123        <?php
     124        if ( isset($link->link_id) )
     125            wp_link_category_checklist($link->link_id);
     126        else
     127            wp_link_category_checklist();
     128        ?>
     129    </ul>
     130</div>
     131
     132<div id="categories-pop" class="ui-tabs-panel" style="display: none;">
     133    <ul id="categorychecklist-pop" class="categorychecklist form-no-clear">
     134        <?php wp_popular_terms_checklist('link_category'); ?>
     135    </ul>
     136</div>
     137
    116138<div id="category-adder" class="wp-hidden-children">
    117139    <h4><a id="category-add-toggle" href="#category-add"><?php _e( '+ Add New Category' ); ?></a></h4>
     
    123145        <span id="category-ajax-response"></span>
    124146    </p>
    125 </div>
    126 
    127 <ul id="category-tabs">
    128     <li class="ui-tabs-selected"><a href="#categories-all"><?php _e( 'All Categories' ); ?></a></li>
    129     <li class="hide-if-no-js"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li>
    130 </ul>
    131 
    132 <div id="categories-all" class="ui-tabs-panel">
    133     <ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
    134         <?php
    135         if ( isset($link->link_id) )
    136             wp_link_category_checklist($link->link_id);
    137         else
    138             wp_link_category_checklist();
    139         ?>
    140     </ul>
    141 </div>
    142 
    143 <div id="categories-pop" class="ui-tabs-panel" style="display: none;">
    144     <ul id="categorychecklist-pop" class="categorychecklist form-no-clear">
    145         <?php wp_popular_terms_checklist('link_category'); ?>
    146     </ul>
    147147</div>
    148148<?php
Note: See TracChangeset for help on using the changeset viewer.