Post Web Assets v2 upgrade UI fixes and improvements #114
@ -3,6 +3,11 @@
|
|||||||
function agreeWithTerms() {
|
function agreeWithTerms() {
|
||||||
const agreeWithTermsInput = document.querySelector('.js-agree-with-terms-input');
|
const agreeWithTermsInput = document.querySelector('.js-agree-with-terms-input');
|
||||||
|
|
||||||
|
if (!agreeWithTermsInput) {
|
||||||
|
// Stop function execution if agreeWithTermsInput is not present
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
agreeWithTermsInput.addEventListener('change', function(e) {
|
agreeWithTermsInput.addEventListener('change', function(e) {
|
||||||
const agreeWithTermsBtnSubmit = document.querySelector('.js-agree-with-terms-btn-submit');
|
const agreeWithTermsBtnSubmit = document.querySelector('.js-agree-with-terms-btn-submit');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user