| 214 | | <script type="text/javascript"> |
| 215 | | jQuery(function( $ ) { |
| 216 | | $( 'dismissed-updates' ).show(); |
| 217 | | $( '#show-dismissed' ).toggle( function() { $( this ).text( '<?php echo $hide_text; ?>' ).attr( 'aria-expanded', 'true' ); }, function() { $( this ).text( '<?php echo $show_text; ?>' ).attr( 'aria-expanded', 'false' ); } ); |
| 218 | | $( '#show-dismissed' ).click( function() { $( '#dismissed-updates' ).toggle( 'fast' ); } ); |
| 219 | | }); |
| 220 | | </script> |
| | 214 | <script type="text/javascript"> |
| | 215 | jQuery( function( $ ) { |
| | 216 | $( '#show-dismissed' ).on( 'click', function() { |
| | 217 | var isExpanded = ( 'true' === $( this ).attr( 'aria-expanded' ) ); |
| | 218 | |
| | 219 | if ( isExpanded ) { |
| | 220 | $( this ).text( '<?php echo $show_text; ?>' ).attr( 'aria-expanded', 'false' ); |
| | 221 | } else { |
| | 222 | $( this ).text( '<?php echo $hide_text; ?>' ).attr( 'aria-expanded', 'true' ); |
| | 223 | } |
| | 224 | |
| | 225 | $( '#dismissed-updates' ).toggle( 'fast' ); |
| | 226 | }); |
| | 227 | }); |
| | 228 | </script> |