Changeset 37722
- Timestamp:
- 06/16/2016 04:53:42 AM (9 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-grid.js
r36681 r37722 775 775 event.preventDefault(); 776 776 this.trigger( 'toggle:upload:attachment' ); 777 778 if ( this.uploader ) { 779 this.uploader.refresh(); 780 } 777 781 }, 778 782 -
trunk/src/wp-includes/js/media/views/frame/manage.js
r33342 r37722 190 190 event.preventDefault(); 191 191 this.trigger( 'toggle:upload:attachment' ); 192 193 if ( this.uploader ) { 194 this.uploader.refresh(); 195 } 192 196 }, 193 197 -
trunk/src/wp-includes/js/plupload/handlers.js
r31690 r37722 431 431 if ( up.features.dragdrop && ! $(document.body).hasClass('mobile') ) { 432 432 uploaddiv.addClass('drag-drop'); 433 $('#drag-drop-area'). bind('dragover.wp-uploader', function(){ // dragenter doesn't fire right :(433 $('#drag-drop-area').on('dragover.wp-uploader', function(){ // dragenter doesn't fire right :( 434 434 uploaddiv.addClass('drag-over'); 435 }). bind('dragleave.wp-uploader, drop.wp-uploader', function(){435 }).on('dragleave.wp-uploader, drop.wp-uploader', function(){ 436 436 uploaddiv.removeClass('drag-over'); 437 437 }); 438 438 } else { 439 439 uploaddiv.removeClass('drag-drop'); 440 $('#drag-drop-area'). unbind('.wp-uploader');440 $('#drag-drop-area').off('.wp-uploader'); 441 441 } 442 442 … … 444 444 $('.upload-flash-bypass').hide(); 445 445 } 446 }); 447 448 uploader.bind( 'postinit', function( up ) { 449 up.refresh(); 446 450 }); 447 451 -
trunk/src/wp-includes/js/plupload/wp-plupload.js
r36709 r37722 181 181 }); 182 182 183 this.uploader.bind( 'postinit', function( up ) { 184 up.refresh(); 185 self.init(); 186 }); 187 183 188 this.uploader.init(); 184 189 … … 312 317 }); 313 318 314 this.uploader.bind( 'PostInit', function() {315 self.init();316 });317 319 }; 318 320
Note: See TracChangeset
for help on using the changeset viewer.