Skip to content

Commit

Permalink
Merge revert-154-revert-147-rails7 into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
stage-branch-merger[bot] authored Jan 3, 2024
2 parents fca93fe + 5e83198 commit 6ffdaa9
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions public/campaign-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,27 +166,27 @@ script.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()
$("[id^='cf_US_State_']").hide()
} else {
$("[for^='cf_US_State_']").show()
$("[id^='cf_US_State_']").show()
}
})
})
})(jQuery)
}

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

jQuery(document).ready(function() {
console.log('ready')
jQuery("[id^='cf_Country_']").change(function(){
if (jQuery(this).val()!='US'){
jQuery("[for^='cf_US_State_']").hide()
jQuery("[id^='cf_US_State_']").hide()
} else {
jQuery("[for^='cf_US_State_']").show()
jQuery("[id^='cf_US_State_']").show()
}
})
})
};
script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js';

Expand Down

0 comments on commit 6ffdaa9

Please sign in to comment.