Make WordPress Core

Changeset 22990


Ignore:
Timestamp:
12/03/2012 06:32:25 AM (11 years ago)
Author:
ryan
Message:

Show Select Files button the first time the media modal is opened.

Props koopermsith
fixes #22691

File:
1 edited

Legend:

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

    r22987 r22990  
    19041904            if ( this.controller.uploader ) {
    19051905                $placeholder = this.$('.browser');
     1906
     1907                // Check if we've already replaced the placeholder.
     1908                if ( $placeholder[0] === $browser[0] )
     1909                    return;
     1910
    19061911                $browser.detach().text( $placeholder.text() );
    19071912                $browser[0].className = $placeholder[0].className;
Note: See TracChangeset for help on using the changeset viewer.