webnotes/erpnext#912 Stay Updated button in website fixed

This commit is contained in:
Akhilesh Darjee 2014-01-28 15:50:28 +05:30
parent ffa4769b51
commit a7ab20ec78

View File

@ -11,11 +11,10 @@
<script>
$("#footer-subscribe-button").click(function() {
$("#footer-subscribe-email").attr('disabled', true);
$("#footer-subscribe-button").html("Sending...")
.attr("disabled", true);
if($("#footer-subscribe-email").val()) {
$("#footer-subscribe-email").attr('disabled', true);
$("#footer-subscribe-button").html("Sending...")
.attr("disabled", true);
erpnext.send_message({
subject:"Subscribe me",
sender: $("#footer-subscribe-email").val(),
@ -32,5 +31,7 @@
}
});
}
else
wn.msgprint(wn._("Please enter email address"))
});
</script>