Changeset 29299
- Timestamp:
- 07/25/2014 12:59:29 AM (10 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-grid.js
r29282 r29299 176 176 frame: 'edit-attachments', 177 177 gridRouter: this.gridRouter, 178 gridItem: $( currentTarget ).closest( 'li' ),179 178 library: this.state().get('library'), 180 179 model: model … … 369 368 }); 370 369 371 this.gridItem = this.options.gridItem;372 370 this.gridRouter = this.options.gridRouter; 373 371 this.library = this.options.library; … … 407 405 $( 'body' ).off( 'keydown.media-modal' ); /* remove the keydown event */ 408 406 // Restore the original focus item if possible 409 self.gridItem && self.gridItem.focus();407 $( 'li.attachment[data-id="' + self.model.get( 'id' ) +'"]' ).focus(); 410 408 self.resetRoute(); 411 409 } ); -
trunk/src/wp-includes/js/media-views.js
r29289 r29299 4640 4640 rerenderOnModelChange: true 4641 4641 } ); 4642 this.$el.attr( 'aria-label', this.model.get( 'title' ) ).attr( 'aria-checked', false ); 4642 this.$el.attr( { 4643 'aria-label' : this.model.get( 'title' ), 4644 'aria-checked': false, 4645 'data-id' : this.model.get( 'id' ) 4646 } ); 4643 4647 4644 4648 if ( options.rerenderOnModelChange ) {
Note: See TracChangeset
for help on using the changeset viewer.