Fix standard newsletters to not send when segments are missing

This commit is contained in:
Tautvidas Sipavičius
2016-04-12 14:11:26 +03:00
parent e35e97cdbf
commit a011c3aade

View File

@@ -79,7 +79,9 @@ define(
} }
}); });
}, },
handleSend: function() { handleSend: function(e) {
e.preventDefault();
if(!this.isValid()) { if(!this.isValid()) {
jQuery('#mailpoet_newsletter').parsley().validate(); jQuery('#mailpoet_newsletter').parsley().validate();
} else { } else {