Ticket #16435: 16435.patch
File 16435.patch, 1.2 KB (added by , 8 years ago) |
---|
-
wp-includes/js/media/views/modal.js
205 205 this.escape(); 206 206 event.stopImmediatePropagation(); 207 207 } 208 209 // Insert into post when return is pressed. 210 if ( 13 === event.which && this.$el.is(':visible') ) { 211 this.$el.find('.media-button-insert').trigger('click'); 212 } 208 213 } 209 214 }); 210 215 -
wp-includes/js/media/views/uploader/status.js
8 8 * @augments wp.Backbone.View 9 9 * @augments Backbone.View 10 10 */ 11 var View = wp.media.View, 11 var $ = jQuery, 12 View = wp.media.View, 12 13 UploaderStatus; 13 14 14 15 UploaderStatus = View.extend({ … … 98 99 this.$index.text( index + 1 ); 99 100 this.$total.text( queue.length ); 100 101 this.$filename.html( active ? this.filename( active.get('filename') ) : '' ); 102 103 // Move focus back to modal. 104 $('.media-modal').parent().eq(0).focus(); 101 105 }, 102 106 /** 103 107 * @param {string} filename