1function notifyme(id){ 2 document.getElementById('modal-notify-me').classList.add('is-active'); 3 document.getElementById('requestproduct_product_id').value = id; 4} 5 6function requestproduct_send(){ 7$.ajax({ 8 type: "POST", 9 url: 'index.php?route=module/requestproduct/requestproduct', 10 data: 'requestproduct_name=' + $("input[name=requestproduct_name]").val() + '&requestproduct_email=' + $("input[name=requestproduct_email]").val() + '&requestproduct_product_id=' + $("input[name=requestproduct_product_id]").val(), 11 success: function (json) { 12 // console.log(data); 13 //console.log(json['response']); 14 var result = json['response']; 15 //success send email 16 if(result == 1){ 17 $("#requestproduct_name").val(''); 18 $("#requestproduct_email").val(''); 19 Swal({ 20 type: 'success', 21 title: 'Success', 22 text: 'We will update you when product is available' 23 }); 24 //email already sent before 25 }else if(result == 2){ 26 Swal({ 27 type: 'success', 28 title:'Success', 29 text: 'We will update you when product is available' 30 }); 31 $("#requestproduct_name").val(''); 32 $("#requestproduct_email").val(''); 33 //email not sent 34 }else if(result == 3){ 35 document.getElementById('modal-notify-me').classList.add('is-active'); 36 Swal({ 37 type: 'error', 38 title: 'Error', 39 text: 'Error processing request' 40 }); 41 } 42 43 }, 44 dataType: "json" 45}); 46}
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.