Fix AJAX comment moderation on edit post view. Props mdawaffe. fixes #4245
git-svn-id: https://develop.svn.wordpress.org/trunk@7075 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0808c1b9a1
commit
71bc342e4c
|
@ -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() );
|
||||
|
|
|
@ -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' );
|
||||
|
|
Loading…
Reference in New Issue