Changeset 7094
- Timestamp:
- 02/28/08 21:57:39 (10 months ago)
- Files:
-
- trunk/wp-includes/js/wp-lists.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/js/wp-lists.js
r7093 r7094 217 217 var list = this; e = $(e); s = s || {}; 218 218 var cls = wpList.parseClass(e,'dim'); 219 var hide = ( 'moderated' == $('input[name="comment_status"]').val() ) ? true : false;220 219 s = wpList.pre.call( list, e, s, 'dim' ); 221 220 … … 249 248 var dimColor = isClass ? s.dimAddColor : s.dimDelColor; 250 249 if ( 'none' != dimColor ) { 251 if ( hide ) {252 var anim = 'slideUp';253 if ( element.css( 'display' ).match(/table/) )254 anim = 'fadeOut'; // Can't slideup table rows and other table elements. Known jQuery bug255 element.animate( { backgroundColor: dimColor }, 'fast' )[anim]( 'fast' )256 } else257 element.animate( { backgroundColor: dimColor }, 'fast' )258 250 element 251 .animate( { backgroundColor: dimColor }, 'fast' ) 259 252 .queue( function() { element.toggleClass(s.dimClass); $(this).dequeue(); } ) 260 253 .animate( { backgroundColor: color }, { complete: function() { $(this).css( 'backgroundColor', '' ); } } );
