Changeset 7093
- Timestamp:
- 02/28/2008 09:51:57 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/wp-lists.js
r7086 r7093 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; 219 220 s = wpList.pre.call( list, e, s, 'dim' ); 220 221 … … 248 249 var dimColor = isClass ? s.dimAddColor : s.dimDelColor; 249 250 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 bug 255 element.animate( { backgroundColor: dimColor }, 'fast' )[anim]( 'fast' ) 256 } else 257 element.animate( { backgroundColor: dimColor }, 'fast' ) 250 258 element 251 .animate( { backgroundColor: dimColor }, 'fast' )252 259 .queue( function() { element.toggleClass(s.dimClass); $(this).dequeue(); } ) 253 260 .animate( { backgroundColor: color }, { complete: function() { $(this).css( 'backgroundColor', '' ); } } );
Note: See TracChangeset
for help on using the changeset viewer.