1$(document).ready(function () { 2 $(".valida").validate({ 3 ignore: 'input[type=hidden]', // ignore hidden fields 4 errorClass: 'danger', 5 successClass: 'success', 6 highlight: function (element, errorClass) { 7 $(element).removeClass(errorClass); 8 }, 9 unhighlight: function (element, errorClass) { 10 $(element).removeClass(errorClass); 11 }, 12 errorPlacement: function (error, element) { 13 error.insertAfter(element); 14 }, 15 rules: { 16 email: { 17 required: true, 18 email: true 19 } 20 }, 21 //Submit Handler Function 22 submitHandler: function () { 23 // add a loading image in place of your returning outcome 24 caricamento("recupera()"); 25 26 } 27 }); 28 29}); 30 31 32 33 34function recupera() { 35 var postForm = $("#form-recupero").serialize() + "&module=recupero-password&action=recupera_domanda_segreta"; 36 $.post(WS_CALL, postForm, function (data) { 37 obj = JSON.parse(data); 38 39 if (obj.esito == 1) { 40 $.unblockUI(); 41 oggetto={ 42 bGFzdElk:btoa(obj.lastId), 43 domanda:obj.domanda, 44 email:obj.email, 45 }; 46 $.redirect('recupero-password-step-1.php',oggetto ); 47 } else { 48 $.unblockUI(); 49 Swal.fire({ 50 type: 'error', 51 title: 'Oops...', 52 allowEscapeKey: false, 53 allowOutsideClick: false, 54 html: obj.erroreDescrizione 55 }).then((result) => { 56 document.location.href = "index.php"; 57 }); 58 } 59 }); 60}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.