[minor] validate email address before get update button click
This commit is contained in:
parent
2efe05c1ce
commit
9a0efc7710
@ -12,7 +12,7 @@
|
||||
frappe.ready(function() {
|
||||
$("#footer-subscribe-button").click(function() {
|
||||
|
||||
if($("#footer-subscribe-email").val()) {
|
||||
if($("#footer-subscribe-email").val() && valid_email($("#footer-subscribe-email").val())) {
|
||||
$("#footer-subscribe-email").attr('disabled', true);
|
||||
$("#footer-subscribe-button").html("Sending...")
|
||||
.attr("disabled", true);
|
||||
@ -31,7 +31,7 @@ frappe.ready(function() {
|
||||
});
|
||||
}
|
||||
else
|
||||
frappe.msgprint(frappe._("Please enter email address"))
|
||||
frappe.msgprint(frappe._("Please enter valid email address"))
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user