webnotes/erpnext#912 stay updated button fixed in website

This commit is contained in:
Akhilesh Darjee 2014-01-28 13:03:47 +05:30
parent a570cd66f7
commit 7c1976950d

View File

@ -16,11 +16,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(),
@ -37,6 +36,8 @@
}
});
}
else
wn.msgprint("Please enter email address");
});
</script>
{% endblock %}