| 1 |
jQuery( function( $ ) { |
| 2 |
// Accordion handling in various areas. |
| 3 |
$( '.activitypub-settings-accordion' ).on( 'click', '.activitypub-settings-accordion-trigger', function() { |
| 4 |
var isExpanded = ( 'true' === $( this ).attr( 'aria-expanded' ) ); |
| 5 |
|
| 6 |
if ( isExpanded ) { |
| 7 |
$( this ).attr( 'aria-expanded', 'false' ); |
| 8 |
$( '#' + $( this ).attr( 'aria-controls' ) ).attr( 'hidden', true ); |
| 9 |
} else { |
| 10 |
$( this ).attr( 'aria-expanded', 'true' ); |
| 11 |
$( '#' + $( this ).attr( 'aria-controls' ) ).attr( 'hidden', false ); |
| 12 |
} |
| 13 |
} ); |
| 14 |
|
| 15 |
$(document).on( 'wp-plugin-install-success', function( event, response ) { |
| 16 |
setTimeout( function() { |
| 17 |
$( '.activate-now' ).removeClass( 'thickbox open-plugin-details-modal' ); |
| 18 |
}, 1200 ); |
| 19 |
} ); |
| 20 |
} ); |
| 21 |
|