1function write_log(msg) { 2 if (window.console) { 3 console.log(msg); 4 } 5} 6 7function write_log_obj(obj) { 8 if (window.console) { 9 var obj_name = obj; 10 for (var key in obj) { 11 if (obj.hasOwnProperty(key)) { 12 write_log(obj_name + ": " + key + " (" + obj[key] + ")"); 13 } 14 } 15 } 16} 17 18function _jt_go_to(selector, seconds) { 19 if (selector) { 20 $('html, body').animate({ scrollTop: $(selector).offset().top - 80 }, seconds); 21 } 22} 23 24function test() { 25} 26 27/* Manual client-side validation of Validator Groups */ 28/* Don't show individual messages, show summary or summary header */ 29/* Set CSS to inval red border class on failed validation */ 30/* Returns true if valid */ 31function validate_group_custom(validation_group_name) { 32 $("." + validation_group_name).removeClass("inval"); 33 34 var validates = Page_ClientValidate(validation_group_name); 35 36 write_log(validates); 37 38 var summaryIndex = -1; 39 //display all summaries. 40 for (var i = 0; i < Page_ValidationSummaries.length; i++) { 41 var summary = Page_ValidationSummaries[i]; 42 43 write_log(i); 44 //does this summary need to be displayed? 45 if (fnJSDisplaySummary(summary.validationGroup)) { 46 summary.style.display = "block"; 47 } 48 else { 49 summary.style.display = "none"; 50 } 51 } 52 53 return validates; 54} 55 56/* determines if a Validation Summary for a given group needs to display */ 57function fnJSDisplaySummary(valGrp) { 58 var rtnVal = false; 59 for (i = 0; i < Page_Validators.length; i++) { 60 if (Page_Validators[i].validationGroup == valGrp) { 61 var ctrl = Page_Validators[i].controltovalidate; 62 if (!Page_Validators[i].isvalid) { //at least one is not valid. 63 if (ctrl) { 64 $("#" + ctrl).addClass("inval"); 65 } 66 rtnVal = true; 67 } 68 } 69 } 70 return rtnVal; 71}
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.