From 09f33b686526702982f63dd77125836e6aed32a6 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 28 Feb 2008 21:57:39 +0000 Subject: [PATCH] Revert [7093]. Need a different method. see #6032 git-svn-id: http://svn.automattic.com/wordpress/trunk@7094 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/wp-lists.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/wp-includes/js/wp-lists.js b/wp-includes/js/wp-lists.js index 5eeeae0e39..bbff26c516 100644 --- a/wp-includes/js/wp-lists.js +++ b/wp-includes/js/wp-lists.js @@ -216,7 +216,6 @@ var wpList = { ajaxDim: function( e, s ) { var list = this; e = $(e); s = s || {}; var cls = wpList.parseClass(e,'dim'); - var hide = ( 'moderated' == $('input[name="comment_status"]').val() ) ? true : false; s = wpList.pre.call( list, e, s, 'dim' ); s.element = cls[2] || s.element || null; @@ -248,14 +247,8 @@ var wpList = { element.toggleClass( s.dimClass ) var dimColor = isClass ? s.dimAddColor : s.dimDelColor; if ( 'none' != dimColor ) { - if ( hide ) { - var anim = 'slideUp'; - if ( element.css( 'display' ).match(/table/) ) - anim = 'fadeOut'; // Can't slideup table rows and other table elements. Known jQuery bug - element.animate( { backgroundColor: dimColor }, 'fast' )[anim]( 'fast' ) - } else - element.animate( { backgroundColor: dimColor }, 'fast' ) element + .animate( { backgroundColor: dimColor }, 'fast' ) .queue( function() { element.toggleClass(s.dimClass); $(this).dequeue(); } ) .animate( { backgroundColor: color }, { complete: function() { $(this).css( 'backgroundColor', '' ); } } ); }