Changeset 7200
- Timestamp:
- 03/10/2008 05:54:46 AM (18 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 edited
-
js/edit-comments.js (modified) (1 diff)
-
menu.php (modified) (1 diff)
-
wp-admin.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/edit-comments.js
r7153 r7200 34 34 var n = parseInt(a.html(),10) - 1; 35 35 a.html( n.toString() ); 36 ( 0 < n ) ? $('#awaiting-mod').each(function() { $(this).show(); $(this).removeClass('count-0') }) : $('#awaiting-mod').hide(); 36 37 } 37 38 }); -
trunk/wp-admin/menu.php
r7050 r7200 18 18 $awaiting_mod = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'"); 19 19 $menu[15] = array(__('Design'), 'switch_themes', 'themes.php'); 20 $menu[20] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' ><span class='comment-count'>$awaiting_mod</span></span>" ), 'edit_posts', 'edit-comments.php');20 $menu[20] = array( sprintf( __('Comments %s'), "<span id='awaiting-mod' class='count-$awaiting_mod'><span class='comment-count'>$awaiting_mod</span></span>" ), 'edit_posts', 'edit-comments.php'); 21 21 $menu[30] = array(__('Settings'), 'manage_options', 'options-general.php'); 22 22 $menu[35] = array(__('Plugins'), 'activate_plugins', 'plugins.php'); -
trunk/wp-admin/wp-admin.css
r7195 r7200 680 680 height: 0.9em; 681 681 width: 1em; 682 } 683 684 #adminmenu li a .count-0 { 685 display: none; 682 686 } 683 687
Note: See TracChangeset
for help on using the changeset viewer.