Ajax tweaks for edit-comments.php from mdawaffe. fixes #6009

git-svn-id: http://svn.automattic.com/wordpress/trunk@7050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-02-26 22:45:46 +00:00
parent ee73826c11
commit 8ebf2db0c6
9 changed files with 202 additions and 64 deletions

View File

@@ -2,5 +2,6 @@ addLoadEvent( function() {
// pulse
jQuery('.fade').animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300).animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300);
// Reveal
jQuery('.wp-no-js-hidden').removeClass( 'wp-no-js-hidden' );
});

View File

@@ -2,7 +2,7 @@ var list; var extra;
jQuery(function($) {
var dimAfter = function( r, settings ) {
$('.comment-count span').each( function() {
$('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() );
@@ -16,7 +16,7 @@ var dimAfter = function( r, settings ) {
}
var delAfter = function( r, settings ) {
$('.comment-count span').each( function() {
$('span.comment-count').each( function() {
var a = $(this);
if ( a.parent('.current').size() || $('#' + settings.element).is('.unapproved') && parseInt(a.html(),10) > 0 ) {
var n = parseInt(a.html(),10) - 1;