1var contactCustomerCheckFlag = false; 2 3$(document).ready(function () { 4 5 var submitConfirmMsg = "æ¨ç¢ºå®è¦éåºå?" 6 if ($('#submitConfirmMsg').length > 0) { 7 submitConfirmMsg = $('#submitConfirmMsg').html() 8 } 9 10 var isSubmitting = false; 11 12 if ($('#isCustom').length > 0) {//æèªè¨æ¬ä½ 13 $(document).on("click", '.contactForm .colCheckbox', function () { 14 var currCheckCount = $('.contactForm .' + $(this).attr("name") + ':checked').length; 15 var maxCheckCount = $(this).data("max"); 16 if (currCheckCount > maxCheckCount) { 17 alert("該é ç®æå¤åªè½å¾é¸ " + maxCheckCount + " é "); 18 return false; 19 } 20 }); 21 } 22 23 $("#contactSubmit").click(function () { 24 if (isSubmitting) { 25 var submittingMsg = "è¡¨å®æ£å¨éåºï¼è«ç¨å"; 26 if ($('#submittingMsg').length > 0) { 27 submittingMsg = $('#submittingMsg').html(); 28 } 29 alert(submittingMsg); 30 return false; 31 } 32 33 //å®¢è£½å¤æ·èª¿æ´ 34 if (contactCustomerCheckFlag) { 35 if (!contactCustomerCheck()) { 36 return false; 37 } 38 } 39 else { 40 if ($('#isCustom').length > 0) {//èªè¨æ¬ä½ 41 42 } else { 43 if ($('.contactForm #content').val() == '') { 44 var noKeyinContentMsg = "è«è¼¸å ¥çè¨å §å®¹"; 45 if ($('#noKeyinContentMsg').length > 0) { 46 noKeyinContentMsg = $('#noKeyinContentMsg').html(); 47 } 48 alert(noKeyinContentMsg); 49 return false; 50 } 51 if ($('.contactForm #email').val() != "") { 52 if (IsEmail($('#email').val()) == false) { 53 var mailFailMsg = "Emailæ ¼å¼ä¸æ£ç¢º"; 54 if ($('#mailFailMsg').length > 0) { 55 mailFailMsg = $('#mailFailMsg').html(); 56 } 57 alert(mailFailMsg); 58 return false; 59 } 60 } 61 if ($('.contactForm #phone').val() == '') { 62 var noKeyinTelMsg = "è«è¼¸å ¥é»è©±"; 63 if ($('#noKeyinTelMsg').length > 0) { 64 noKeyinTelMsg = $('#noKeyinTelMsg').html(); 65 } 66 alert(noKeyinTelMsg); 67 return false; 68 } 69 } 70 } 71 72 73 if (confirm(submitConfirmMsg) == true) { 74 $('.contactForm').submit(); 75 $(this).html("æ£å¨éåºä¸ï¼è«ç¨å...") 76 //isSubmitting = true; 77 } 78 }); 79});
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.