Closed marcosguerrini closed 6 years ago
any updates on this issue?
Coming back to this after sometime... I fixed this by wrapping the if-else
block
if (true === $('#demo-form2').parsley().isValid()) {
$('.bs-callout-info').removeClass('hidden');
$('.bs-callout-warning').addClass('hidden');
} else {
$('.bs-callout-info').addClass('hidden');
$('.bs-callout-warning').removeClass('hidden');
}
... in an if statement to check demo-form2
exists in the page, as follows:
if ($('#demo-form2').length > 0 ) {
if (true === $('#demo-form2').parsley().isValid()) {
$('.bs-callout-info').removeClass('hidden');
$('.bs-callout-warning').addClass('hidden');
} else {
$('.bs-callout-info').addClass('hidden');
$('.bs-callout-warning').removeClass('hidden');
}
}
No more error!
Hey guys. The above solution works. Just make sure you delete your cache and then try again.
I get this warning and error in every pages that use this gentelella adaptation for django.
even if i use the plain_page.html get that error.