Changeset 29917
- Timestamp:
- 10/16/2014 05:53:15 AM (10 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r29876 r29917 3725 3725 3726 3726 drop: function( event ) { 3727 var $wrap = null ;3727 var $wrap = null, uploadView; 3728 3728 3729 3729 this.containerDragleave( event ); … … 3748 3748 multiple: true 3749 3749 }); 3750 this.workflow.on( 'uploader:ready', this.addFiles, this ); 3750 uploadView = this.workflow.uploader; 3751 if ( uploadView.uploader && uploadView.uploader.ready ) { 3752 this.addFiles.apply( this ); 3753 } else { 3754 this.workflow.on( 'uploader:ready', this.addFiles, this ); 3755 } 3751 3756 } else { 3752 3757 this.workflow.state().reset(); -
trunk/src/wp-includes/js/plupload/wp-plupload.js
r29788 r29917 159 159 }, 0 ); 160 160 }); 161 161 162 self.ready = true; 162 163 $(self).trigger( 'uploader:ready' ); 163 164 });
Note: See TracChangeset
for help on using the changeset viewer.