1$(document).ready(function() { 2 $('.show-callback').on('click', function() { 3 $('.alert-success, .alert-danger').remove(); 4 $("#callback-box").modal('show'); 5 }); 6 7 $('#button-callback').on('click', function() { 8 $.ajax({ 9 url: 'index.php?route=extension/module/callback', 10 type: 'post', 11 dataType: 'json', 12 data: $("#form-callback").serialize(), 13 beforeSend: function() { 14 $('#button-callback').button('loading'); 15 }, 16 complete: function() { 17 $('#button-callback').button('reset'); 18 }, 19 success: function(json) { 20 $('.alert-success, .alert-danger').remove(); 21 22 if (json['error']) { 23 $('#callback').after('<div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> ' + json['error'] + '</div>'); 24 } 25 26 if (json['success']) { 27 yaCounter23714293.reachGoal('formazakazazvonkashapka'); 28 $('#callback').after('<div class="alert alert-success"><i class="fa fa-check-circle"></i> ' + json['success'] + '</div>'); 29 $('#form-callback').get(0).reset(); 30 31 setTimeout(function () { 32 $('#callback-box').modal('hide'); 33 }, 1500); 34 } 35 } 36 }); 37 }); 38 39 $('#button-phone-callback').on('click', function() { 40 $.ajax({ 41 url: 'index.php?route=extension/module/callback', 42 type: 'post', 43 dataType: 'json', 44 data: $("#callback-form-phone").serialize(), 45 beforeSend: function() { 46 $('#button-add-callback').button('loading'); 47 }, 48 complete: function() { 49 $('#button-add-callback').button('reset'); 50 }, 51 success: function(json) { 52 $('.callback-alert').remove(); 53 54 if (json['error']) { 55 $('#callback-field-alert').html('<div class="text-danger">' + json['error'] + '</div>'); 56 } 57 58 if (json['success']) { 59 $('#callback-field-alert').html('<div class="text-success">' + json['success'] + '</div>'); 60 $('#callback-form-phone').get(0).reset(); 61 62 $('#callback-field-alert > div').fadeOut(3000); 63 } 64 } 65 }); 66 }); 67});
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.