/* * PrivateShop * * Do not edit or add to this file. * You are not authorized to modify, copy or redistribute this file. * Permissions are reserved by FME Modules. * * @author FME Modules * @copyright 2021 FME Modules All right reserved * @license FME Modules * @category FMM Modules * @package PrivateShop */ $(document).ready(function(){ $(document).on('submit', '#create-account_form', function(e){ e.preventDefault(); submitFunction(); }); $('.is_customer_param').hide(); }); function submitFunction() { $('#create_account_error').html('').hide(); $.ajax({ type: 'POST', url: baseUri + '?rand=' + new Date().getTime(), async: true, cache: false, dataType : "json", headers: { "cache-control": "no-cache" }, data: { controller: 'authentication', SubmitCreate: 1, ajax: true, email_create: $('#email_create').val(), back: $('input[name=back]').val(), token: token }, success: function(jsonData) { if (jsonData.hasError) { var errors = ''; for(error in jsonData.errors) //IE6 bug fix if(error != 'indexOf') errors += '
" + error + '
' }], { padding: 0 }); } else alert(error); } }); }