text: function submitForm(){showLoader("Saving","Please wait...."),data=new FormData($("#add-contact")[0]),$.ajax({type:"post",url:"/contact_us",data:data,method:"POST",dataType:"json",contentType:!1,cache:!1,processData:!1,success:function(t){console.log(t),"saved"==t.status?(showSuccessAlert("Success","Contact Us successfully added"),$("#add-contact")[0].reset()):showErrorAlert("Error","Contact Us unsuccessfully added, please check your information.")},error:function(t){showHttpErrorAlert(t)}})}$(document).ready(function(){$("#add-contact").submit(function(t){t.preventDefault();$(this).serializeArray();submitForm()}),$("#reset_btn").click(function(){$("#image1").attr("src",$(this).val()),$("#add-contact").length>0&&$("#add-contact")[0].reset()})});