Make WordPress Core


Ignore:
Timestamp:
03/26/2008 08:06:18 PM (18 years ago)
Author:
markjaquith
Message:

Clean up the Write Post/Write Page/Edit Comment screens for people without JS. Introduce the hide-if-no-js and hide-if-js automagical classes. fixes #6395

File:
1 edited

Legend:

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

    r7527 r7529  
    122122<?php if ( current_user_can( 'publish_posts' ) ) : // Contributors don't get to choose the date of publish ?>
    123123<p class="curtime"><?php printf($stamp, $date, $time); ?>
    124 &nbsp;<a href="#edit_timestamp" class="edit-timestamp" tabindex='4'><?php _e('Edit') ?></a></p>
    125 
    126 <div id='timestampdiv'><?php touch_time(($action == 'edit'),1,4); ?></div>
     124&nbsp;<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a></p>
     125
     126<div id='timestampdiv' class='hide-if-js'><?php touch_time(($action == 'edit'),1,4); ?></div>
    127127<?php endif; ?>
    128128
     
    206206<?php echo $form_prevstatus ?>
    207207
    208 <div id="tagsdiv" class="postbox <?php echo postbox_classes('tagsdiv', 'post'); ?>">
     208<div id="tagsdiv" class="postbox <?php echo postbox_classes('tagsdiv', 'post'); ?> hide-if-no-js">
    209209<h3><?php _e('Tags'); ?></h3>
    210210<div class="inside">
     
    219219
    220220<div id="category-adder" class="wp-hidden-children">
    221     <h4><a id="category-add-toggle" href="#category-add" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4>
     221    <h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4>
    222222    <p id="category-add" class="wp-hidden-child">
    223223        <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" tabindex="3" />
Note: See TracChangeset for help on using the changeset viewer.