Heray-Was-Here
Server : Apache
System : Linux mail.lomejor.cr 6.8.0-1059-azure #65~22.04.1-Ubuntu SMP Thu May 28 16:59:19 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.2.31
Disable Function : NONE
Directory :  /var/www/dev/htdocs/custom/ecommerceng/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/dev/htdocs/custom/ecommerceng/js/form.js
jQuery(document).ready(function (){
  jQuery('.ef_state_all').click(function () {
    var _this = jQuery(this);
    var state = _this.is(':checked');
    var target = _this.attr('data-target');

    jQuery('.'+target).prop('checked', state).map(function (idx, item) {
      var _this = jQuery(item);
      ef_update(_this);
    });
  });

  jQuery('.ef_state').click(function () {
    var _this = jQuery(this);
    ef_update(_this);
  });

  function ef_update(_this) {
    var target = _this.attr('data-target');
    var state = _this.is(':checked');

    jQuery('#'+target).prop('disabled', !state);
  }
});

Hry