Changeset 6961

Show
Ignore:
Timestamp:
02/21/08 22:20:19 (9 months ago)
Author:
ryan
Message:

Validation fixes

Files:

Legend:

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

    r6955 r6961  
    145145&nbsp;<a href="#edit_timestamp" class="edit-timestamp"><?php _e('Edit') ?></a></p> 
    146146 
    147 <div id='timestamp'><?php touch_time(($action == 'edit')); ?></div> 
     147<div id='timestampdiv'><?php touch_time(($action == 'edit')); ?></div> 
    148148 
    149149</div> 
     
    298298 
    299299<div id="commentstatusdiv" class="postbox <?php echo postbox_classes('commentstatusdiv', 'post'); ?>"> 
    300 <h3><?php _e('Comments & Pings') ?></h3> 
     300<h3><?php _e('Comments &amp; Pings') ?></h3> 
    301301<div class="inside"> 
    302302<input name="advanced_view" type="hidden" value="1" /> 
  • trunk/wp-admin/edit-form-comment.php

    r6949 r6961  
    7474&nbsp;<a href="#edit_timestamp" class="edit-timestamp"><?php _e('Edit') ?></a></p> 
    7575 
    76 <div id='timestamp'><?php touch_time(('editcomment' == $action), 0, 5); ?></div> 
     76<div id='timestampdiv'><?php touch_time(('editcomment' == $action), 0, 5); ?></div> 
    7777 
    7878</div> 
  • trunk/wp-admin/edit-page-form.php

    r6955 r6961  
    123123&nbsp;<a href="#edit_timestamp" class="edit-timestamp"><?php _e('Edit') ?></a></p> 
    124124 
    125 <div id='timestamp'><?php touch_time(($action == 'edit')); ?></div> 
     125<div id='timestampdiv'><?php touch_time(($action == 'edit')); ?></div> 
    126126 
    127127</div> 
     
    195195 
    196196<div id="pagecommentstatusdiv" class="postbox <?php echo postbox_classes('pagecommentstatusdiv', 'page'); ?>"> 
    197 <h3><?php _e('Comments & Pings') ?></h3> 
     197<h3><?php _e('Comments &amp; Pings') ?></h3> 
    198198<div class="inside"> 
    199199<input name="advanced_view" type="hidden" value="1" /> 
  • trunk/wp-admin/includes/template.php

    r6950 r6961  
    774774        $tab_index_attribute = " tabindex=\"$tab_index\""; 
    775775 
    776     echo '<legend><input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp"'.$tab_index_attribute.' /> <label for="timestamp">'.__( 'Edit timestamp' ).'</label></legend>'; 
     776    echo '<input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp"'.$tab_index_attribute.' /> <label for="timestamp">'.__( 'Edit timestamp' ).'</label>'; 
    777777 
    778778    $time_adj = time() + (get_option( 'gmt_offset' ) * 3600 ); 
  • trunk/wp-admin/js/comment.js

    r6924 r6961  
    22    add_postbox_toggles('comment'); 
    33 
    4     jQuery('#timestamp').css('display', 'none'); 
     4    jQuery('#timestampdiv').css('display', 'none'); 
    55    jQuery('.edit-timestamp').click(function () { 
    6         if (jQuery('#timestamp').is(":hidden")) { 
    7             jQuery('#timestamp').slideDown("normal"); 
     6        if (jQuery('#timestampdiv').is(":hidden")) { 
     7            jQuery('#timestampdiv').slideDown("normal"); 
    88        } else { 
    9             jQuery('#timestamp').hide(); 
     9            jQuery('#timestampdiv').hide(); 
    1010        } 
    1111    }); 
  • trunk/wp-admin/js/page.js

    r6955 r6961  
    66    jQuery('#pageslugdiv').hide(); 
    77 
    8     jQuery('#timestamp').css('display', 'none'); 
     8    jQuery('#timestampdiv').css('display', 'none'); 
    99    jQuery('.edit-timestamp').click(function () { 
    10         if (jQuery('#timestamp').is(":hidden")) { 
    11             jQuery('#timestamp').slideDown("normal"); 
     10        if (jQuery('#timestampdiv').is(":hidden")) { 
     11            jQuery('#timestampdiv').slideDown("normal"); 
    1212        } else { 
    13             jQuery('#timestamp').hide(); 
     13            jQuery('#timestampdiv').hide(); 
    1414        } 
    1515    }); 
  • trunk/wp-admin/js/post.js

    r6955 r6961  
    145145    jQuery('.categorychecklist :checkbox').change( syncChecks ).filter( ':checked' ).change(); 
    146146 
    147     jQuery('#timestamp').css('display', 'none'); 
     147    jQuery('#timestampdiv').css('display', 'none'); 
    148148    jQuery('.edit-timestamp').click(function () { 
    149         if (jQuery('#timestamp').is(":hidden")) { 
    150             jQuery('#timestamp').slideDown("normal"); 
     149        if (jQuery('#timestampdiv').is(":hidden")) { 
     150            jQuery('#timestampdiv').slideDown("normal"); 
    151151        } else { 
    152             jQuery('#timestamp').hide(); 
     152            jQuery('#timestampdiv').hide(); 
    153153        } 
    154154    });