1jQuery(document).ready(function () { 2 jQuery('form[name="arm_form_aff"]').find("input,select,textarea").not("[type=submit]").ARMjqBootstrapValidation({ 3 preventSubmit: true, 4 prependExistingHelpBlock: false, 5 autoAdd: { 6 helpBlocks: true 7 }, 8 submitError: function($form, event, errors) { 9 var arm_frm_id=jQuery($form).attr('id'); 10 if(Object.keys(errors).length>0){ 11 var errors_elment_focust_index='1'; 12 jQuery.each(errors, function( index, value ) { 13 jQuery("#"+arm_frm_id+" [name='"+index+"']").addClass('arm_invalid'); 14 if(errors_elment_focust_index=='1'){ 15 position =jQuery("#"+arm_frm_id+" [name='"+index+"']")[0].getBoundingClientRect(); 16 if(position.top >= 0 && position.bottom <= window.innerHeight) { 17 setTimeout(function(){ 18 jQuery("#"+arm_frm_id+" [name='"+index+"']").focus(); 19 },200); 20 } 21 else 22 { 23 jQuery(window.opera ? 'html' : 'html, body').animate({scrollTop: jQuery("#"+arm_frm_id+" [name='"+index+"']").offset().top - 200}, 500); 24 setTimeout(function(){ 25 jQuery("#"+arm_frm_id+" [name='"+index+"']").focus(); 26 },500); 27 } 28 } 29 errors_elment_focust_index=parseInt(errors_elment_focust_index)+1; 30 }); 31 } 32 event.preventDefault(); 33 return false; 34 }, 35 submitSuccess: function($form, event) { 36 var arm_frm_id=jQuery($form).attr('id'); 37 arm_aff_reg_form_ajax_action($form); 38 setTimeout(function(){ 39 jQuery("#"+arm_frm_id+" [name]").removeClass('arm_invalid'); 40 }, 10000); 41 event.preventDefault(); 42 return false; 43 44 }, 45 filter: function() { 46 return jQuery(this).is(":visible"); 47 } 48 }); 49 jQuery('form[name="arm_form_referrals"]').find("input,select,textarea").not("[type=submit]").ARMjqBootstrapValidation({ 50 preventSubmit: true, 51 prependExistingHelpBlock: false, 52 autoAdd: { 53 helpBlocks: true 54 }, 55 submitError: function($form, event, errors) { 56 // the error messages to the user, log, etc. 57 var arm_frm_id=jQuery($form).attr('id'); 58 59 if(Object.keys(errors).length>0){ 60 var errors_elment_focust_index='1'; 61 jQuery.each(errors, function( index, value ) { 62 if(errors_elment_focust_index=='1'){ 63 var position =jQuery("#"+arm_frm_id+" [name='"+index+"']")[0].getBoundingClientRect(); 64 if(position.top >= 0 && position.bottom <= window.innerHeight) { 65 setTimeout(function(){ 66 jQuery("#"+arm_frm_id+" input[type='text'][name='"+index+"'],#"+arm_frm_id+" input[type='password'][name='"+index+"'],#"+arm_frm_id+" input[type='email'][name='"+index+"']").focus(); 67 },200); 68 } 69 else 70 { 71 jQuery(window.opera ? 'html' : 'html, body').animate({scrollTop: jQuery("#"+arm_frm_id+" [name='"+index+"']").offset().top - 200}, 500); 72 setTimeout(function(){ 73 jQuery("#"+arm_frm_id+" input[type='text'][name='"+index+"'],#"+arm_frm_id+" input[type='password'][name='"+index+"'],#"+arm_frm_id+" input[type='email'][name='"+index+"']").focus(); 74 },500); 75 } 76 } 77 errors_elment_focust_index=parseInt(errors_elment_focust_index)+1; 78 }); 79 } 80 81 event.preventDefault(); 82 return false; 83 }, 84 submitSuccess: function($form, event) { 85 86 var arm_frm_id=jQuery($form).attr('id'); 87 arm_referrals_invite_submit($form); 88 setTimeout(function(){ 89 jQuery("#"+arm_frm_id+" [name]").removeClass('arm_invalid'); 90 }, 10000); 91 event.preventDefault(); 92 return false; 93 94 }, 95 filter: function() { 96 return jQuery(this).is(":visible"); 97 } 98 });
99}); 100function armaffiliateSubmitBtnClick($event){ 101 if ($event.isTrigger != undefined && $event.isTrigger){ 102 $event.preventDefault(); 103 return false; 104 } 105} 106function armreferralsSubmitBtnClick($event){ 107 if ($event.isTrigger != undefined && $event.isTrigger){ 108 $event.preventDefault(); 109 return false; 110 } 111}
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.