Changeset 46778
- Timestamp:
- 11/25/2019 11:18:04 AM (5 years ago)
- Location:
- branches/5.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
-
branches/5.3/src/js/media/views/settings.js
r43309 r46778 70 70 // Handle button groups. 71 71 } else if ( $setting.hasClass('button-group') ) { 72 $buttons = $setting.find('button').removeClass('active'); 73 $buttons.filter( '[value="' + value + '"]' ).addClass('active'); 72 $buttons = $setting.find( 'button' ) 73 .removeClass( 'active' ) 74 .attr( 'aria-pressed', 'false' ); 75 $buttons.filter( '[value="' + value + '"]' ) 76 .addClass( 'active' ) 77 .attr( 'aria-pressed', 'true' ); 74 78 75 79 // Handle text inputs and textareas.
Note: See TracChangeset
for help on using the changeset viewer.