Make WordPress Core

Changeset 28838


Ignore:
Timestamp:
06/26/2014 01:19:18 AM (10 years ago)
Author:
wonderboymusic
Message:

Race conditions can cause .uploader-window to be visible with opacity of 0. It will cause the user to have to refresh the page or inspect the element to hide it. Add a delay in wp.media.view.UploaderWindow.hide() to ensure that the uploader window is indeed hidden.

Props kovshenin.
Fixes #27341.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-views.js

    r28816 r28838  
    34933493                }
    34943494            });
     3495
     3496            // https://core.trac.wordpress.org/ticket/27341
     3497            _.delay( function() {
     3498                if ( '0' === $el.css('opacity') && $el.is(':visible') ) {
     3499                    $el.hide();
     3500                }
     3501            }, 500 );
    34953502        }
    34963503    });
Note: See TracChangeset for help on using the changeset viewer.