Changeset 7094

Show
Ignore:
Timestamp:
02/28/08 21:57:39 (10 months ago)
Author:
ryan
Message:

Revert [7093]. Need a different method. see #6032

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/js/wp-lists.js

    r7093 r7094  
    217217        var list = this; e = $(e); s = s || {}; 
    218218        var cls = wpList.parseClass(e,'dim'); 
    219         var hide = ( 'moderated' == $('input[name="comment_status"]').val() ) ? true : false; 
    220219        s = wpList.pre.call( list, e, s, 'dim' ); 
    221220 
     
    249248        var dimColor = isClass ? s.dimAddColor : s.dimDelColor; 
    250249        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' ) 
    258250            element 
     251                .animate( { backgroundColor: dimColor }, 'fast' ) 
    259252                .queue( function() { element.toggleClass(s.dimClass); $(this).dequeue(); } ) 
    260253                .animate( { backgroundColor: color }, { complete: function() { $(this).css( 'backgroundColor', '' ); } } );