website: style fixes
diff --git a/website/templates/html/footer.html b/website/templates/html/footer.html
index 19aeabe..2f1c7fe 100644
--- a/website/templates/html/footer.html
+++ b/website/templates/html/footer.html
@@ -43,19 +43,24 @@
</div></p>
<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()) {
erpnext.send_message({
subject:"Subscribe me",
sender: $("#footer-subscribe-email").val(),
message: "Subscribe to newsletter (via website footer).",
callback: function(r) {
- console.log(r)
if(!r.exc) {
- $("#footer-subscribe-email").val("").attr('disabled', true);
$("#footer-subscribe-button").html("Thank You :)")
.addClass("btn-success").attr("disabled", true);
} else {
- $("#footer-subscribe-button").html("Error :( Not a valid id?").addClass("btn-danger");
+ $("#footer-subscribe-button").html("Error :( Not a valid id?")
+ .addClass("btn-danger").attr("disabled", false);
+ $("#footer-subscribe-email").val("").attr('disabled', false);
}
}
});
diff --git a/website/templates/html/product_page.html b/website/templates/html/product_page.html
index eaf4ca8..5bffe91 100644
--- a/website/templates/html/product_page.html
+++ b/website/templates/html/product_page.html
@@ -39,7 +39,7 @@
<hr>
{% if obj.doclist.get({"doctype":"Item Website Specification"}) %}
<h3>Specifications</h3>
- <table class="table table-striped table-bordered" style="width: 100%">
+ <table class="table table-bordered" style="width: 100%">
{% for d in obj.doclist.get(
{"doctype":"Item Website Specification"}) %}
<tr>