| Server IP : 77.39.210.126 / Your IP : 216.73.216.203 Web Server : Apache System : Linux v00l0v-vmpcnews.sphostserver.com 4.18.0-553.124.4.el8_10.x86_64 #1 SMP Fri May 15 04:14:14 EDT 2026 x86_64 User : artecasarepresti ( 1022) PHP Version : 7.4.33 Disable Function : dl,passthru,proc_open,proc_close,proc_terminate,shell_exec,system MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/artecasarepresti/www/wp-content/themes/Avada/includes/lib/inc/fusion-app/options/ |
Upload File : |
var FusionPageBuilder = FusionPageBuilder || {};
FusionPageBuilder.options = FusionPageBuilder.options || {};
FusionPageBuilder.options.radioButtonSet = {
optionRadioButtonSet: function( $element ) {
var $radiobuttonsets, $radiobuttonset, $radiosetcontainer, optionId, $subgroupWrapper,
self = this;
$element = $element || this.$el;
$radiobuttonsets = $element.find( '.fusion-form-radio-button-set' );
if ( $radiobuttonsets.length ) {
$radiobuttonsets.each( function() {
$radiobuttonset = jQuery( this );
optionId = $radiobuttonset.closest( '.fusion-builder-option' ).attr( 'data-option-id' );
if ( 'color_scheme' !== optionId && 'scheme_type' !== optionId ) {
$radiobuttonset.find( 'a' ).on( 'click', function( event ) {
event.preventDefault();
$radiosetcontainer = jQuery( this ).closest( '.fusion-form-radio-button-set' );
$subgroupWrapper = $radiosetcontainer.closest( '.fusion-builder-option.subgroup' ).parent();
$radiosetcontainer.find( '.ui-state-active' ).removeClass( 'ui-state-active' );
jQuery( this ).addClass( 'ui-state-active' );
$radiosetcontainer.find( '.button-set-value' ).val( $radiosetcontainer.find( '.ui-state-active' ).data( 'value' ) ).trigger( 'change' );
jQuery( this ).blur();
if ( $radiosetcontainer.closest( '.fusion-builder-option.subgroup' ).length ) {
$subgroupWrapper.find( '.fusion-subgroup-content' ).removeClass( 'active' );
$subgroupWrapper.find( '.fusion-subgroup-' + $radiosetcontainer.find( '.ui-state-active' ).data( 'value' ) ).addClass( 'active' );
}
} );
} else {
$radiobuttonset.find( 'a' ).on( 'click', function( event ) {
event.preventDefault();
if ( 'function' === typeof self.colorSchemeImport ) {
self.colorSchemeImport( jQuery( event.currentTarget ), jQuery( event.currentTarget ).closest( '.fusion-builder-option' ) );
}
} );
}
} );
}
}
};