Changeset 29562
- Timestamp:
- 08/21/2014 02:52:24 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/js/media-views.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r29560 r29562 4665 4665 template: media.template('attachment'), 4666 4666 4667 attributes: { 4668 tabIndex: 0, 4669 role: 'checkbox' 4667 attributes: function() { 4668 return { 4669 'tabIndex': 0, 4670 'role': 'checkbox', 4671 'aria-label': this.model.get( 'title' ), 4672 'aria-checked': false, 4673 'data-id': this.model.get( 'id' ) 4674 }; 4670 4675 }, 4671 4676 … … 4689 4694 rerenderOnModelChange: true 4690 4695 } ); 4691 this.$el.attr( {4692 'aria-label' : this.model.get( 'title' ),4693 'aria-checked': false,4694 'data-id' : this.model.get( 'id' )4695 } );4696 4696 4697 4697 if ( options.rerenderOnModelChange ) { … … 4955 4955 4956 4956 // Add 'selected' class to model, set aria-checked to true and make the checkbox tabable. 4957 this.$el.addClass( 'selected' ).attr( 'aria-checked', true ).find( '.check' ).attr( 'tabindex', '0' ); 4957 this.$el.addClass( 'selected' ).attr( 'aria-checked', true ) 4958 .find( '.check' ).attr( 'tabindex', '0' ); 4958 4959 }, 4959 4960 /** … … 4971 4972 } 4972 4973 this.$el.removeClass( 'selected' ).attr( 'aria-checked', false ) 4973 .find( '.check' ).attr( 'tabindex', '-1' );4974 .find( '.check' ).attr( 'tabindex', '-1' ); 4974 4975 }, 4975 4976 /**
Note: See TracChangeset
for help on using the changeset viewer.