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/erp/htdocs/custom/.old_ecommerceng/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/erp/htdocs/custom/.old_ecommerceng/js/form.js
function eCommerceSubmitForm(id_form)
{
	document.getElementById(id_form).submit();
}

function eCommerceConfirmDelete(id_form, confirmation)
{
  if (confirm(confirmation))
  {
    document.getElementById(id_form+'_action').value = 'delete';
    eCommerceSubmitForm(id_form);
  }
}

function eCommerceConfirmWoocommerceUpdateAttributes(id_form, confirmation)
{
  if (confirm(confirmation))
  {
    document.getElementById(id_form+'_action').value = 'update_woocommerce_attribute';
    eCommerceSubmitForm(id_form);
  }
}

function eCommerceConfirmWoocommerceUpdateDictTaxClass(id_form, confirmation)
{
  if (confirm(confirmation))
  {
    document.getElementById(id_form+'_action').value = 'update_woocommerce_tax_class';
    eCommerceSubmitForm(id_form);
  }
}

function eCommerceConfirmUpdatePaymentGateways(id_form, confirmation)
{
  if (confirm(confirmation))
  {
    document.getElementById(id_form+'_action').value = 'update_payment_gateways';
    eCommerceSubmitForm(id_form);
  }
}

function eCommerceConfirmUpdatePriceLevel(id_form, confirmation, price_level)
{
  jQuery('#'+id_form).on('submit', function(e) {
    var current_price_level = jQuery('#'+id_form+' select[name="ecommerce_price_level"]').val();

    if (current_price_level != price_level && !confirm(confirmation)) {
      e.preventDefault();
    }
  });
}

jQuery(document).ready(function (){
  jQuery('#form_reset_data').submit(function() {
    return confirm(jQuery('#confirm').val());
  });
});

Hry