HEX
Server: Apache
System: Linux web5.visualcom.es 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: ensaco.es (10019)
PHP: 8.3.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/ensaco.es/httpdocs/wp-content/plugins/bb-plugin/modules/icon-group/js/settings.js
( function( $ ) {

	FLBuilder.registerModuleHelper( 'icon_group_form', {
		init: function() {
			var form  = $( '.fl-builder-settings' ),
			icon = form.find( 'input[name=icon]' );

			icon.on( 'change', this._flipSettings );

			this._flipSettings();
		},
		_flipSettings: function() {
			var form  = $( '.fl-builder-settings' ),
					icon = form.find( 'input[name=icon]' );
			if ( -1 !== icon.val().indexOf( 'fad fa') ) {
				form.find('#fl-field-duo_color1').show();
				form.find('#fl-field-duo_color2').show();
				form.find('#fl-field-color').hide();
				form.find('#fl-field-hover_color').hide()
			} else {
				form.find('#fl-field-duo_color1').hide();
				form.find('#fl-field-duo_color2').hide();
				form.find('#fl-field-color').show();
				form.find('#fl-field-hover_color').show()
			}
		}
	});

} )( jQuery );