MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/www/me/wp-content/plugins/envira-gallery-lite/assets/js/metabox.js
/**
* You'll need to use CodeKit or similar, as this file is a placeholder to combine
* the following JS files into min/metabox-min.js:
*
* - conditional-fields.js
* - gallery-preview.js
* - gallery-types.js
* - gallery-help.js
* - media-bulk-edit.js
* - media-delete.js
* - media-edit.js
* - media-insert.js
* - media-manage.js
* - media-move.js
* - media-upload.js
*/

jQuery( document ).ready( function( $ ) {

	// Image Size: Random
	// conditional-fields doesn't support multiple conditions, so we manually show/hide
	// the Random Image Sizes option depending on the Image Size value
	$( 'select[name="_envira_gallery[image_size]"]' ).on( 'change', function() {

		if ( $( this ).val() == 'envira_gallery_random' ) {
			$( 'tr#envira-config-image-sizes-random-box' ).show();
		} else {
			$( 'tr#envira-config-image-sizes-random-box' ).hide();
		}

	} );

	// Run the above conditions on load.
	$( 'select[name="_envira_gallery[image_size]"]' ).trigger( 'change' );

} );