Ticket #15998: 15998.diff
File 15998.diff, 1.9 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/meta-boxes.php
490 490 $wp_list_table = get_list_table('WP_Post_Comments_List_Table'); 491 491 $wp_list_table->display( true ); 492 492 ?> 493 <p class="hide-if-no-js"><a href="#commentstatusdiv" id="show-comments" onclick="commentsBox.get(<?php echo $total; ?> );return false;"><?php _e('Show comments'); ?></a> <img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /></p>493 <p class="hide-if-no-js"><a href="#commentstatusdiv" id="show-comments" onclick="commentsBox.get(<?php echo $total; ?>,<?php echo $wp_list_table->get_items_per_page( 'edit_comments_per_page' );?>);return false;"><?php _e('Show comments'); ?></a> <img class="waiting" style="display:none;" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /></p> 494 494 <?php 495 495 $hidden = get_hidden_meta_boxes('post'); 496 496 if ( ! in_array('commentsdiv', $hidden) ) { ?> 497 <script type="text/javascript">jQuery(document).ready(function(){commentsBox.get(<?php echo $total; ?>, 10);});</script>497 <script type="text/javascript">jQuery(document).ready(function(){commentsBox.get(<?php echo $total; ?>, <?php echo $wp_list_table->get_items_per_page( 'edit_comments_per_page' );?>);});</script> 498 498 <?php 499 499 } 500 500 wp_comment_trashnotice(); -
wp-admin/js/post.dev.js
188 188 theList = theExtraList = null; 189 189 $("a[className*=':']").unbind(); 190 190 191 if ( commentsBox.st > commentsBox.total )191 if ( commentsBox.st >= commentsBox.total ) 192 192 $('#show-comments').hide(); 193 193 else 194 194 $('#show-comments').html(postL10n.showcomm);