2024-02-08 12:31:51 +00:00
|
|
|
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 );
|
|
|
|
}
|
|
|
|
} );
|
2024-03-28 09:40:10 +00:00
|
|
|
|
2024-02-08 12:31:51 +00:00
|
|
|
$(document).on( 'wp-plugin-install-success', function( event, response ) {
|
|
|
|
setTimeout( function() {
|
|
|
|
$( '.activate-now' ).removeClass( 'thickbox open-plugin-details-modal' );
|
|
|
|
}, 1200 );
|
2024-03-28 09:40:10 +00:00
|
|
|
} );
|
|
|
|
|
2024-02-08 12:31:51 +00:00
|
|
|
} );
|