Merge pull request #8439 from mbauskar/subsciption-fixes
[minor] validate email address before get update button click
This commit is contained in:
commit
8c7eb444ef
@ -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