62c99c87a3
Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>
21 lines
745 B
JavaScript
21 lines
745 B
JavaScript
jQuery( function( $ ) {
|
|
// Accordion handling in various areas.
|
|
$( '.activitypub-settings-accordion' ).on( 'click', '.activitypub-settings-accordion-trigger', function() {
|
|
var isExpanded = ( 'true' === $( this ).attr( 'aria-expanded' ) );
|
|
|
|
if ( isExpanded ) {
|
|
$( this ).attr( 'aria-expanded', 'false' );
|
|
$( '#' + $( this ).attr( 'aria-controls' ) ).attr( 'hidden', true );
|
|
} else {
|
|
$( this ).attr( 'aria-expanded', 'true' );
|
|
$( '#' + $( this ).attr( 'aria-controls' ) ).attr( 'hidden', false );
|
|
}
|
|
} );
|
|
|
|
$(document).on( 'wp-plugin-install-success', function( event, response ) {
|
|
setTimeout( function() {
|
|
debugger;
|
|
$( '.activate-now' ).removeClass( 'thickbox open-plugin-details-modal' );
|
|
}, 1200 );
|
|
} );
|
|
} );
|