HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/wp-smushit/_src/js/modules/admin-common.js
jQuery(function ($) {
	'use strict';

    /**
	 * Handle the Smush Stats link click
	 */
    $( 'body' ).on( 'click', 'a.smush-stats-details', function ( e ) {
	    // If disabled
	    if ( $( this ).prop( 'disabled' ) ) {
		    return false;
	    }
		
	    e.preventDefault();
	
	    const $link = $( this );
	    const $wrapper = $link.parents().eq( 1 ).find( '.smush-stats-wrapper' );
	
	    // Toggle expanded state
	    $link.toggleClass( 'smush-stats-expanded' );
	    $wrapper.slideToggle();
    } );
});