Changeset 7529
- Timestamp:
- 03/26/2008 08:06:18 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
-
wp-admin/css/global.css (modified) (1 diff)
-
wp-admin/edit-form-advanced.php (modified) (3 diffs)
-
wp-admin/edit-form-comment.php (modified) (1 diff)
-
wp-admin/edit-page-form.php (modified) (1 diff)
-
wp-admin/includes/post.php (modified) (1 diff)
-
wp-admin/js/comment.js (modified) (1 diff)
-
wp-admin/js/page.js (modified) (1 diff)
-
wp-admin/js/post.js (modified) (1 diff)
-
wp-admin/wp-admin.css (modified) (1 diff)
-
wp-includes/general-template.php (modified) (1 diff)
-
wp-includes/script-loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/global.css
r7512 r7529 195 195 padding-right: 280px; 196 196 } 197 198 #timestampdiv {199 display: none;200 } -
trunk/wp-admin/edit-form-advanced.php
r7527 r7529 122 122 <?php if ( current_user_can( 'publish_posts' ) ) : // Contributors don't get to choose the date of publish ?> 123 123 <p class="curtime"><?php printf($stamp, $date, $time); ?> 124 <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 <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> 127 127 <?php endif; ?> 128 128 … … 206 206 <?php echo $form_prevstatus ?> 207 207 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"> 209 209 <h3><?php _e('Tags'); ?></h3> 210 210 <div class="inside"> … … 219 219 220 220 <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> 222 222 <p id="category-add" class="wp-hidden-child"> 223 223 <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _e( 'New category name' ); ?>" tabindex="3" /> -
trunk/wp-admin/edit-form-comment.php
r7391 r7529 38 38 ?> 39 39 <p class="curtime"><?php printf($stamp, $date, $time); ?> 40 <a href="#edit_timestamp" class="edit-timestamp "><?php _e('Edit') ?></a></p>40 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><?php _e('Edit') ?></a></p> 41 41 42 <div id='timestampdiv' ><?php touch_time(('editcomment' == $action), 0, 5); ?></div>42 <div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0, 5); ?></div> 43 43 44 44 </div> -
trunk/wp-admin/edit-page-form.php
r7527 r7529 107 107 ?> 108 108 <p class="curtime"><?php printf($stamp, $date, $time); ?> 109 <a href="#edit_timestamp" class="edit-timestamp " tabindex='4'><?php _e('Edit') ?></a></p>110 111 <div id='timestampdiv' ><?php touch_time(($action == 'edit'),1,4); ?></div>109 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a></p> 110 111 <div id='timestampdiv' class='hide-if-js'><?php touch_time(($action == 'edit'),1,4); ?></div> 112 112 113 113 </div> -
trunk/wp-admin/includes/post.php
r7458 r7529 590 590 if ( $closed = get_usermeta( $current_user->ID, 'closedpostboxes_'.$page ) ) { 591 591 if ( !is_array( $closed ) ) return ''; 592 return in_array( $id, $closed )? ' closed' : '';592 return in_array( $id, $closed )? 'if-js-closed' : ''; 593 593 } else { 594 594 if ( 'tagsdiv' == $id || 'categorydiv' == $id ) return ''; 595 else return ' closed';595 else return 'if-js-closed'; 596 596 } 597 597 } -
trunk/wp-admin/js/comment.js
r7325 r7529 1 1 jQuery(document).ready( function() { 2 2 add_postbox_toggles('comment'); 3 4 // close postboxes that should be closed 5 jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); 6 7 // show things that should be visible, hide what should be hidden 8 jQuery('.hide-if-no-js').show(); 9 jQuery('.hide-if-js').hide(); 3 10 4 11 jQuery('.edit-timestamp').click(function () { 5 12 if (jQuery('#timestampdiv').is(":hidden")) { 6 13 jQuery('#timestampdiv').slideDown("normal"); 14 jQuery('.edit-timestamp').text(commentL10n.cancel); 7 15 } else { 8 16 jQuery('#timestampdiv').hide(); 17 jQuery('#mm').val(jQuery('#hidden_mm').val()); 18 jQuery('#jj').val(jQuery('#hidden_jj').val()); 19 jQuery('#aa').val(jQuery('#hidden_aa').val()); 20 jQuery('#hh').val(jQuery('#hidden_hh').val()); 21 jQuery('#mn').val(jQuery('#hidden_mn').val()); 22 jQuery('.edit-timestamp').text(commentL10n.edit); 9 23 } 10 24 return false; -
trunk/wp-admin/js/page.js
r7394 r7529 2 2 add_postbox_toggles('page'); 3 3 make_slugedit_clickable(); 4 5 // close postboxes that should be closed 6 jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); 7 8 // show things that should be visible, hide what should be hidden 9 jQuery('.hide-if-no-js').show(); 10 jQuery('.hide-if-js').hide(); 4 11 5 12 jQuery('#title').blur( function() { if ( (jQuery("#post_ID").val() > 0) || (jQuery("#title").val().length == 0) ) return; autosave(); } ); -
trunk/wp-admin/js/post.js
r7479 r7529 60 60 61 61 jQuery(document).ready( function() { 62 // close postboxes that should be closed 63 jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed'); 64 65 // show things that should be visible, hide what should be hidden 66 jQuery('.hide-if-no-js').show(); 67 jQuery('.hide-if-js').hide(); 68 62 69 // postboxes 63 70 add_postbox_toggles('post'); -
trunk/wp-admin/wp-admin.css
r7502 r7529 1457 1457 cursor: pointer; 1458 1458 } 1459 1460 .hide-if-no-js { 1461 display: none; 1462 } -
trunk/wp-includes/general-template.php
r7477 r7529 941 941 942 942 if ( $media_buttons ) { ?> 943 <div id="media-buttons" >943 <div id="media-buttons" class="hide-if-no-js"> 944 944 <?php do_action( 'media_buttons' ); ?> 945 945 </div> -
trunk/wp-includes/script-loader.php
r7513 r7529 161 161 $this->add( 'link', '/wp-admin/js/link.js', array('jquery-ui-tabs', 'wp-lists', 'postbox'), '20080131' ); 162 162 $this->add( 'comment', '/wp-admin/js/comment.js', array('postbox'), '20080219' ); 163 $this->localize( 'comment', 'commentL10n', array( 164 'cancel' => __('Cancel'), 165 'edit' => __('Edit'), 166 ) ); 163 167 $this->add( 'media-upload', '/wp-admin/js/media-upload.js', false, '20080109' ); 164 168 $this->localize( 'upload', 'uploadL10n', array(
Note: See TracChangeset
for help on using the changeset viewer.