Changeset 29558
- Timestamp:
- 08/20/2014 07:59:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r29556 r29558 754 754 this.get('selection').add( attachment ); 755 755 756 // Set focus back to where it goes when an attachment is selected. 757 $( '.attachments-browser .attachments .attachment' ).first().focus(); 756 this.frame.trigger( 'library:selection:add' ); 758 757 }, 759 758 … … 5257 5256 this.collection.on( 'reset', this.render, this ); 5258 5257 5258 this.listenTo( this.controller, 'library:selection:add', this.attachmentFocus ); 5259 5259 this.listenTo( this.controller, 'attachment:keydown:arrow', this.arrowEvent ); 5260 5260 … … 5277 5277 // attachments get proper width applied. 5278 5278 _.defer( this.setColumns, this ); 5279 }, 5280 5281 attachmentFocus: function() { 5282 this.$( 'li:first' ).focus(); 5279 5283 }, 5280 5284
Note: See TracChangeset
for help on using the changeset viewer.