Make WordPress Core

Changeset 11172


Ignore:
Timestamp:
05/04/2009 12:13:44 PM (17 years ago)
Author:
azaozz
Message:

Make tags accessible without js on the edit screen

Location:
trunk/wp-admin
Files:
3 edited

Legend:

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

    r11159 r11172  
    275275?>
    276276<div class="tagsdiv" id="<?php echo $tax_name; ?>">
    277     <p class="jaxtag">
     277    <div class="jaxtag">
     278    <div class="nojs-tags hide-if-js">
     279    <p><?php _e('Add or remove tags'); ?></p>
     280    <textarea name="<?php echo "tax_input[$tax_name]"; ?>" class="the-tags" id="tax-input[<?php echo $tax_name; ?>]"><?php echo attr(get_terms_to_edit( $post->ID, $tax_name )); ?></textarea></div>
     281
     282    <span class="ajaxtag hide-if-no-js">
    278283        <label class="hidden" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label>
    279         <input type="hidden" name="<?php echo "tax_input[$tax_name]"; ?>" class="the-tags" id="tax-input[<?php echo $tax_name; ?>]" value="<?php echo attr(get_terms_to_edit( $post->ID, $tax_name )); ?>" />
    280 
    281     <span class="ajaxtag">
    282284        <input type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _ea('Add new tag'); ?>" />
    283285        <input type="button" class="button tagadd" value="<?php _ea('Add'); ?>" tabindex="3" />
    284     </span></p>
     286    </span></div>
    285287    <p class="howto"><?php echo $helps; ?></p>
    286288    <div class="tagchecklist"></div>
  • trunk/wp-admin/includes/post.php

    r11171 r11172  
    10041004    $view_link = str_replace(array('%pagename%','%postname%'), $post_name, $permalink);
    10051005    $return = '<strong>' . __('Permalink:') . "</strong>\n" . '<span id="sample-permalink">' . $display_link . "</span>\n";
    1006     $return .= '<span id="edit-slug-buttons"><a href="#post_name" class="edit-slug button" onclick="edit_permalink(' . $id . '); return false;">' . __('Edit') . "</a></span>\n";
     1006    $return .= '<span id="edit-slug-buttons"><a href="#post_name" class="edit-slug button hide-if-no-js" onclick="edit_permalink(' . $id . '); return false;">' . __('Edit') . "</a></span>\n";
    10071007    $return .= '<span id="editable-post-name-full">' . $post_name . "</span>\n";
    10081008    if ( isset($view_post) )
  • trunk/wp-admin/wp-admin.css

    r11171 r11172  
    31303130    vertical-align: bottom;
    31313131}
     3132
     3133.tagsdiv .newtag {
     3134    width: 180px;
     3135}
     3136
     3137.tagsdiv .the-tags {
     3138    display: block;
     3139    height: 60px;
     3140    margin: 0 auto;
     3141    overflow: auto;
     3142    width: 260px;
     3143}
     3144
     3145#post-body-content .tagsdiv .the-tags {
     3146    margin: 0 5px;
     3147}
Note: See TracChangeset for help on using the changeset viewer.