Fix AJAX comment moderation on edit post view. Props mdawaffe. fixes #4245

git-svn-id: http://svn.automattic.com/wordpress/trunk@7075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-02-27 23:36:24 +00:00
parent b9d443b574
commit 363ddd3b4f
2 changed files with 3 additions and 3 deletions

View File

@ -2,13 +2,13 @@ var list; var extra;
jQuery(function($) {
var dimAfter = function( r, settings ) {
$('span.comment-count').each( function() {
$('li span.comment-count').each( function() {
var a = $(this);
var n = parseInt(a.html(),10) + ( $('#' + settings.element).is('.' + settings.dimClass) ? 1 : -1 );
a.html( n.toString() );
});
// we need to do the opposite for this guy, TODO: update title
$('.post-com-count').each( function() {
$('.post-com-count span.comment-count').each( function() {
var a = $(this);
var n = parseInt(a.html(),10) + ( $('#' + settings.element).is('.' + settings.dimClass) ? -1 : 1 );
a.html( n.toString() );

View File

@ -125,7 +125,7 @@ class WP_Scripts {
'good' => __('Good'),
'strong' => __('Strong')
) );
$this->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists'), '20071104' );
$this->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists'), '20080227' );
$this->add( 'admin-users', '/wp-admin/js/users.js', array('wp-lists'), '20070823' );
$this->add( 'admin-forms', '/wp-admin/js/forms.js', false, '20080108' );
$this->add( 'xfn', '/wp-admin/js/xfn.js', false, '3517' );