Changeset 6582

Show
Ignore:
Timestamp:
01/09/08 12:12:35 (8 months ago)
Author:
matt
Message:

Replacing FAT with jQuery effects, new styling for alerts. See #5369.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/admin.php

    r6574 r6582  
    2929wp_reset_vars(array('profile', 'redirect', 'redirect_url', 'a', 'popuptitle', 'popupurl', 'text', 'trackback', 'pingback')); 
    3030 
    31 wp_enqueue_script( 'fat' ); 
     31wp_enqueue_script( 'common' ); 
     32wp_enqueue_script( 'jquery-color' ); 
    3233 
    3334$editing = false; 
  • trunk/wp-admin/wp-admin.css

    r6578 r6582  
    318318 
    319319.updated { 
    320     background: #ddedfa
    321     border: 1px solid #c6d9e9
     320    background: #ffffe0
     321    border: 1px solid #e6db55
    322322} 
    323323 
    324324.updated a { 
    325     color: #448abd; 
    326     font-weight: bold; 
     325    color: #2583ad; 
     326    text-decoration: none; 
     327    padding-bottom: 2px; 
     328    border-bottom: 1px solid #2583ad; 
    327329} 
    328330 
     
    11781180 
    11791181#poststuff h2 { 
     1182    margin-top: 20px; 
    11801183    margin-bottom: 20px; 
    11811184} 
     
    12751278    background-color:#2583ad; 
    12761279    background-image:url(images/toggle-arrow.gif); 
    1277     background-position: 5px 18px; 
    1278 } 
     1280    background-position: 4px 18px; 
     1281} 
  • trunk/wp-includes/js/wp-lists.js

    r6303 r6582  
    173173        if ( !s.data._ajax_nonce ) { return true; } 
    174174 
    175         var func = function() { $('#' + s.element).css( 'background-color', '' ).hide(); list.wpList.recolor(); }; 
     175        var func = function() { list.wpList.recolor(); }; 
    176176        var hideTO = -1; 
    177177        if ( 'none' != s.delColor ) { 
    178             Fat.fade_element(s.element,null,700,s.delColor); 
    179             hideTO = setTimeout(func, 705); 
     178            $('#' + s.element).animate( { backgroundColor:  s.delColor }, 100 ).slideUp(); 
     179            hideTO = setTimeout(func, 500); 
    180180        } else { 
    181181            func(); 
     
    228228        } 
    229229 
     230        var thisclass = $('#' + s.element).attr('class'); 
     231        if ( thisclass && thisclass.match(/alternate/) ) 
     232            var color = '#f1f1f1'; 
     233        else 
     234            var color =  '#fff'; 
     235        var isClass = $('#' + s.element).toggleClass(s.dimClass).is('.' + s.dimClass); 
     236        if ( isClass && 'none' != s.dimAddColor ) {  
     237            $('#' + s.element).animate( { backgroundColor:  s.dimAddColor }, 50 ).animate( { backgroundColor: color }, 400 ); 
     238        } 
     239        else if ( !isClass && 'none' != s.dimDelColor ) { 
     240            $('#' + s.element).animate( { backgroundColor:  s.dimDelColor }, 50 ).animate( { backgroundColor: color }, 400 ); 
     241        } 
     242 
    230243        if ( !s.data._ajax_nonce ) { return true; } 
    231  
    232         var isClass = $('#' + s.element).toggleClass(s.dimClass).is('.' + s.dimClass); 
    233         if ( isClass && 'none' != s.dimAddColor ) { Fat.fade_element(s.element,null,700,s.dimAddColor); } 
    234         else if ( !isClass && 'none' != s.dimDelColor ) { Fat.fade_element(s.element,null,700,s.dimDelColor); } 
    235  
    236         var dimTO = setTimeout( function() { $('#' + s.element).css( 'background-color', '' ); }, 705 ); 
    237244 
    238245        s.success = function(r) { 
     
    303310            var b = e.css( 'background-color' ); 
    304311            if ( b == 'transparent' ) { b = ''; } 
    305             Fat.fade_element(e.attr('id'),null,700,s.addColor); 
    306             setTimeout( function() { 
    307                 var g = e.css( 'background-color', '' ).css( 'background-color' ); 
    308                 if ( b != g ) { e.css( 'background-color', b ); } 
    309             }, 705 ); 
     312             
     313            $('#' + s.element).css('background-color', s.addColor).animate( { backgroundColor: '#fff' }, 300 ); 
    310314        } 
    311315        list.each( function() { this.wpList.process( e ); } ); 
  • trunk/wp-includes/script-loader.php

    r6579 r6582  
    1212 
    1313    function default_scripts() { 
    14         $this->add( 'fat', '/wp-includes/js/fat.js', false, '1.0-RC1_3660' ); 
    15  
     14        $this->add( 'common', '/wp-admin/js/common.js', false, '1.0' ); 
    1615        $this->add( 'sack', '/wp-includes/js/tw-sack.js', false, '1.6.1' ); 
    1716 
     
    5756        ) ); 
    5857 
    59         $this->add( 'listman', '/wp-includes/js/list-manipulation.js', array('wp-ajax', 'fat'), '20070306' ); 
     58        $this->add( 'listman', '/wp-includes/js/list-manipulation.js', array('wp-ajax', 'jquery-color'), '20070306' ); 
    6059        $this->localize( 'listman', 'listManL10n', array( 
    6160            'jumpText' => __('Jump to new item'), 
     
    7978        $this->add( 'cropper', '/wp-includes/js/crop/cropper.js', array('scriptaculous-dragdrop'), '20070118'); 
    8079 
    81         $this->add( 'jquery', '/wp-includes/js/jquery/jquery.js', false, '1.2.2b2'); 
     80        $this->add( 'jquery', '/wp-includes/js/jquery/jquery.js', false, '1.2.2b2-color'); 
    8281        $this->add( 'jquery-form', '/wp-includes/js/jquery/jquery.form.js', array('jquery'), '2.02'); 
     82        $this->add( 'jquery-color', '/wp-includes/js/jquery/jquery.color.js', array('jquery'), '2.0'); 
    8383        $this->add( 'interface', '/wp-includes/js/jquery/interface.js', array('jquery'), '1.2' ); 
    8484        $this->add( 'dimensions', '/wp-includes/js/jquery/jquery.dimensions.min.js', array('jquery'), '1.1.2');