WordPress.org

Make WordPress Core

Changeset 24660


Ignore:
Timestamp:
07/11/2013 06:43:12 PM (9 years ago)
Author:
markjaquith
Message:

Revisions: Use jQuery animation.

The CSS3 animations caused issues because the element was still there, and there is no standard way to know when a CSS3 animation is done.

See #24425.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/wp-admin.css

    r24658 r24660  
    36673667}
    36683668
    3669 .revisions-tooltip.fade {
    3670     -webkit-transition: opacity 200ms;
    3671     -ms-transition:     opacity 200ms;
    3672     -moz-transition:    opacity 200ms;
    3673     -o-transition:      opacity 200ms;
    3674     transition:         opacity 200ms;
    3675 }
    3676 
    36773669.comparing-two-revisions .revisions-tooltip {
    36783670    bottom: 145px;
  • trunk/wp-admin/js/revisions.js

    r24658 r24660  
    620620        toggleVisibility: function( options ) {
    621621            options = options || {};
    622             var visible = this.visible()
     622            var visible = this.visible();
    623623            if ( visible ) { // Immediate show
    624                 // this.$el.removeClass('fade');
    625                 this.$el.css( 'opacity', 1 );
     624                this.$el.fadeIn( 200 );
    626625            } else if ( options.immediate ) { // Immediate fade out
    627                 this.$el.addClass('fade');
    628                 this.$el.css( 'opacity', 0 );
     626                this.$el.fadeOut( 200 );
    629627            } else { // Wait a bit, make sure we're really done, then fade it out
    630628                _.delay( function( view ) {
Note: See TracChangeset for help on using the changeset viewer.