Validation fixes

git-svn-id: http://svn.automattic.com/wordpress/trunk@6961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-02-21 22:20:19 +00:00
parent 71de0f2d24
commit e44e1b7202
7 changed files with 18 additions and 18 deletions

View File

@ -144,7 +144,7 @@ if ($post_ID) {
<p><?php printf($stamp, $date, $time); ?>
&nbsp;<a href="#edit_timestamp" class="edit-timestamp"><?php _e('Edit') ?></a></p>
<div id='timestamp'><?php touch_time(($action == 'edit')); ?></div>
<div id='timestampdiv'><?php touch_time(($action == 'edit')); ?></div>
</div>
@ -297,7 +297,7 @@ list_meta($metadata);
<?php do_action('dbx_post_advanced'); ?>
<div id="commentstatusdiv" class="postbox <?php echo postbox_classes('commentstatusdiv', 'post'); ?>">
<h3><?php _e('Comments & Pings') ?></h3>
<h3><?php _e('Comments &amp; Pings') ?></h3>
<div class="inside">
<input name="advanced_view" type="hidden" value="1" />
<label for="comment_status" class="selectit">

View File

@ -73,7 +73,7 @@ $time = mysql2date(get_option('time_format'), $comment->comment_date);
<p><?php printf($stamp, $date, $time); ?>
&nbsp;<a href="#edit_timestamp" class="edit-timestamp"><?php _e('Edit') ?></a></p>
<div id='timestamp'><?php touch_time(('editcomment' == $action), 0, 5); ?></div>
<div id='timestampdiv'><?php touch_time(('editcomment' == $action), 0, 5); ?></div>
</div>

View File

@ -122,7 +122,7 @@ if ($post_ID) {
<p><?php printf($stamp, $date, $time); ?>
&nbsp;<a href="#edit_timestamp" class="edit-timestamp"><?php _e('Edit') ?></a></p>
<div id='timestamp'><?php touch_time(($action == 'edit')); ?></div>
<div id='timestampdiv'><?php touch_time(($action == 'edit')); ?></div>
</div>
@ -194,7 +194,7 @@ list_meta($metadata);
</div>
<div id="pagecommentstatusdiv" class="postbox <?php echo postbox_classes('pagecommentstatusdiv', 'page'); ?>">
<h3><?php _e('Comments & Pings') ?></h3>
<h3><?php _e('Comments &amp; Pings') ?></h3>
<div class="inside">
<input name="advanced_view" type="hidden" value="1" />
<label for="comment_status" class="selectit">

View File

@ -773,7 +773,7 @@ function touch_time( $edit = 1, $for_post = 1, $tab_index = 0 ) {
if ( (int) $tab_index > 0 )
$tab_index_attribute = " tabindex=\"$tab_index\"";
echo '<legend><input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp"'.$tab_index_attribute.' /> <label for="timestamp">'.__( 'Edit timestamp' ).'</label></legend>';
echo '<input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp"'.$tab_index_attribute.' /> <label for="timestamp">'.__( 'Edit timestamp' ).'</label>';
$time_adj = time() + (get_option( 'gmt_offset' ) * 3600 );
$post_date = ($for_post) ? $post->post_date : $comment->comment_date;

View File

@ -1,12 +1,12 @@
addLoadEvent( function() {
add_postbox_toggles('comment');
jQuery('#timestamp').css('display', 'none');
jQuery('#timestampdiv').css('display', 'none');
jQuery('.edit-timestamp').click(function () {
if (jQuery('#timestamp').is(":hidden")) {
jQuery('#timestamp').slideDown("normal");
if (jQuery('#timestampdiv').is(":hidden")) {
jQuery('#timestampdiv').slideDown("normal");
} else {
jQuery('#timestamp').hide();
jQuery('#timestampdiv').hide();
}
});
});

View File

@ -5,12 +5,12 @@ addLoadEvent( function() {
// hide advanced slug field
jQuery('#pageslugdiv').hide();
jQuery('#timestamp').css('display', 'none');
jQuery('#timestampdiv').css('display', 'none');
jQuery('.edit-timestamp').click(function () {
if (jQuery('#timestamp').is(":hidden")) {
jQuery('#timestamp').slideDown("normal");
if (jQuery('#timestampdiv').is(":hidden")) {
jQuery('#timestampdiv').slideDown("normal");
} else {
jQuery('#timestamp').hide();
jQuery('#timestampdiv').hide();
}
});
});

View File

@ -144,12 +144,12 @@ addLoadEvent( function() {
} );
jQuery('.categorychecklist :checkbox').change( syncChecks ).filter( ':checked' ).change();
jQuery('#timestamp').css('display', 'none');
jQuery('#timestampdiv').css('display', 'none');
jQuery('.edit-timestamp').click(function () {
if (jQuery('#timestamp').is(":hidden")) {
jQuery('#timestamp').slideDown("normal");
if (jQuery('#timestampdiv').is(":hidden")) {
jQuery('#timestampdiv').slideDown("normal");
} else {
jQuery('#timestamp').hide();
jQuery('#timestampdiv').hide();
}
});
});