1jQuery(document).ready(function($) { 2 var form = $('.contact-form-mini'); 3 4 $(form).each(function () { 5 6 $(this).formValidation({framework: 'bootstrap'}) 7 .on('success.form.fv', function(e) { 8 // Prevent form submission 9 e.preventDefault(); 10 11 // Get the form instance 12 var $form = $(e.target); 13 14 // Get the BootstrapValidator instance 15 var fv = $form.data('formValidation'); 16 17 $form.find("#cmf-msg").html('<div class="gg-ajax-loader">Loading...</div>'); 18 $.ajax({ 19 type: 'POST', 20 url: ajax_object_cmf.ajax_url, 21 data: $form.serialize(), 22 dataType: 'json', 23 success: function(response) { 24 if (response.status == 'success') { 25 $form[0].reset(); 26 } 27 $form.find("#cmf-msg .gg-ajax-loader").remove(); 28 $form.find("#cmf-msg").html(response.errmessage); 29 30 } 31 32 }); 33 34 }); 35}); 36});
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.