Ticket #48355: 48355.diff
File 48355.diff, 770 bytes (added by , 5 years ago) |
---|
-
src/js/media/views/settings.js
69 69 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. 76 80 } else if ( $setting.is('input[type="text"], textarea') ) {