PluginProbe
ActivityPub / 5.3.1
ActivityPub v5.3.1
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
activitypub / assets / js / activitypub-admin.js

activitypub-admin.js in ActivityPub 5.3.1, at assets/js/activitypub-admin.js

22 lines 731 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 } );
22