Thanks to Samuel Liew and other great helpers, the issue has been fixed.
As putting everything here was a mess, and it was poorly explained in the overall solution, I de
In this case, move the dialog function outside of the submit function:
$(function() {
$('#popup-wrapper').modalPopLite({
openButton: '#clicker',
closeButton: '#close-btn'
});
$('#contact-form').submit(function() {
$.ajax({
type: "POST",
url: $(this).attr('action'),
data: $(this).serialize(),
success: function() {
$('#contact-form')[0].reset();
}
});
return false;
});
});