1;(function($){ 2 $.fn.ajaxsendmail = function(validator, success, id){ 3 var form = $(this), 4 value = form.serializeArray(), 5 request = { 6 'option' : 'com_ajax', 7 'module' : 'tm_ajax_contact_form', 8 'data' : value, 9 'format' : 'raw' 10 }; 11 $.ajax({ 12 type : 'POST', 13 data : request, 14 beforeSend: function(){ 15 $("#message_"+id) 16 .addClass("loader") 17 .removeClass("error") 18 .removeClass("success") 19 }, 20 success: function (response) { 21 switch(response) { 22 case success: 23 $("#message_"+id). 24 removeClass("loader"). 25 removeClass("error"). 26 addClass("success") 27 .html(response) 28 .delay(2000) 29 .queue(function(n){ 30 $(this) 31 .html('') 32 .removeClass("success"); 33 n(); 34 }); 35 $('#contact-form_'+ id).trigger('reset'); 36 validator.resetForm(); 37 if (!$.support.placeholder) { 38 $('.mod_tm_ajax_contact_form *[placeholder]').each(function(n){ 39 $(this) 40 .parent('.controls') 41 .find('>.mod_tm_ajax_contact_form_placeholder') 42 .show(); 43 }) 44 } 45 break; 46 default: 47 $("#message_"+id) 48 .removeClass("loader") 49 .removeClass("success") 50 .addClass("error") 51 .html(response) 52 .delay(2000) 53 .queue(function(n){ 54 $(this) 55 .html('') 56 .removeClass("error"); 57 n(); 58 }); 59 break; 60 } 61 } 62 }); 63 } 64})(jQuery);
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.