WordPress.org

Make WordPress Core

Changeset 21380


Ignore:
Timestamp:
08/01/2012 02:27:18 AM (8 years ago)
Author:
koopersmith
Message:

When the browser property is not provided to wp.Uploader, hide Plupload's auto-created file input and call Plupload's disableBrowse. see #21437, [21379].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/plupload/wp-plupload.dev.js

    r21379 r21380  
    114114        }( this.dropzone, this.supports.dragdrop ));
    115115
    116         if ( this.browser )
     116        if ( this.browser ) {
    117117            this.browser.on( 'mouseenter', this.refresh );
     118        } else {
     119            this.uploader.disableBrowse( true );
     120            // If HTML5 mode, hide the auto-created file container.
     121            $('#' + this.uploader.id + '_html5_container').hide();
     122        }
    118123
    119124        this.uploader.bind( 'UploadProgress', this.progress );
Note: See TracChangeset for help on using the changeset viewer.