Skip to content

Commit

Permalink
remove debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
jbirdjavi authored Feb 26, 2024
1 parent cd7c36d commit 3a0e2a0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions public/campaign-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,15 @@ script3.onload = function () {
var campaignForms = window.campaignForms = window.campaignForms || {}
var campaignForm = window.campaignForm = window.campaignForm || {}
var idCounter = 0
console.log('line 11')

campaignForms.jQuery = $.noConflict(true)

function uniqueFormId () {
console.log('uniqueFormId')
var id = ++idCounter
return 'campaignForm' + id
}

function submitForm (form, recaptchaToken) {
console.log('submitForm')
var formId = form.attr('id')

if (!campaignForms[formId].formSubmitted) {
Expand Down Expand Up @@ -86,7 +83,6 @@ script3.onload = function () {
}

function validate (form) {
console.log('validate')
return form.validate({
errorElement: 'span',
errorClass: 'help-block',
Expand Down Expand Up @@ -144,7 +140,6 @@ script3.onload = function () {

// Register all existing forms (not previously registered)
window.campaignForms.registerForms = function () {
console.log('registerForms')
$('.campaign-form form:not([id])').each(function () {
var form = $(this)

Expand All @@ -171,12 +166,10 @@ script3.onload = function () {

// Bootstrap campaign-forms
window.campaignForms.jQuery(function () {
console.log('bootstrap')
window.campaignForms.registerForms()
})

$(document).ready(function() {
console.log('ready')
$("[id^='cf_Country_']").change(function(){
if ($(this).val()!='US'){
$("[for^='cf_US_State_']").hide()
Expand Down

0 comments on commit 3a0e2a0

Please sign in to comment.