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/self/cwd/wp-content/plugins/convertplug/framework/lib/fields/radio-image/radio-image.js
/* eslint-env jquery */
jQuery(document).ready(function () {
	const rm_container = jQuery('.smile-radio-image-holder');
	rm_container.on('click', function () {
		const $this = jQuery(this);
		jQuery.each(rm_container, function () {
			jQuery(this).removeClass('selected');
		});
		$this.addClass('selected');
		$this.find('input:radio').prop('checked', true);
		$this.find('input.smile-input').trigger('change');

		const r = $this.find('input:radio');
		r.prop('checked', true);

		$this.find('input.smile-radio-image').trigger('change');
		jQuery(document).trigger('smile-radio-image-change', [r]);

		const value = $this.find('input:radio').val();
		const elem = $this.find('input:radio').attr('name');
		jQuery(document).trigger('radio_image_click', [elem, value]);
	});
});