HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: /home/mirz4654/public_html/wp-content/plugins/imagify/assets/js/library.js
(function($, d, w, undefined) { // eslint-disable-line no-unused-vars, no-shadow, no-shadow-restricted-names

	var bulkOpt;
	/**
	 * Add a "Imagify'em all" in the select list.
	 */
	bulkOpt = '<option value="imagify-bulk|optimize">' + imagifyLibrary.labels.bulkActionsOptimize + '</option>';

	if ( $( '.button-imagify-optimize-missing-sizes' ).length ) {
		// If we have items that have missing sizes.
		bulkOpt += '<option value="imagify-bulk|optimize_missing_sizes">' + imagifyLibrary.labels.bulkActionsOptimizeMissingSizes + '</option>';
	}

	if ( imagifyLibrary.backupOption || $( '.attachment-has-backup' ).length ) {
		// If the backup option is enabled, or if we have items that can be restored.
		bulkOpt += '<option value="imagify-bulk|restore">' + imagifyLibrary.labels.bulkActionsRestore + '</option>';
	}

	$( '.bulkactions select[name="action"] option:last-child' ).before( bulkOpt );
	$( '.bulkactions select[name="action2"] option:last-child' ).before( bulkOpt );
	$( '#bulkaction option:last-child' ).after( bulkOpt );

	/**
	 * Process optimization for all selected images.
	 */
	$( '#doaction' )
		.add( '#doaction2' )
		.add( '#bulkaction + [name="showThickbox"]' )
		.on( 'click', function( e ) {
			var value = $( this ).prev( 'select' ).val().split( '|' ),
				action, ids;

			if ( 'imagify-bulk' !== value[0] ) {
				return;
			}

			e.preventDefault();

			action = value[1];
			ids    = $( 'input[name^="media"]:checked, input[name^="doaction"]:checked' ).map( function() {
				return this.value;
			} ).get();

			ids.forEach( function( id, index ) {
				setTimeout( function() {
					$( 'table .imagify-data-actions-container[data-id="' + id + '"] .button-imagify-' + action ).first().trigger( 'click' );
				}, index * 300 );
			} );
		} );

} )(jQuery, document, window);