mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-20 03:47:11 +00:00
[fix] buttons for rfq and material request
This commit is contained in:
@@ -1,7 +1,34 @@
|
||||
{% extends "templates/web.html" %}
|
||||
|
||||
{% block script %}
|
||||
<script>{% include "templates/includes/start.js" %}</script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#login_btn").click(function() {
|
||||
var me = this;
|
||||
$(this).html("Logging In...").prop("disabled", true);
|
||||
frappe.call({
|
||||
"method": "login",
|
||||
args: {
|
||||
usr: "demo@erpnext.com",
|
||||
pwd: "demo",
|
||||
lead_email: $("#lead-email").val(),
|
||||
},
|
||||
callback: function(r) {
|
||||
$(me).prop("disabled", false);
|
||||
if(r.exc) {
|
||||
alert("Error, please contact support@erpnext.com");
|
||||
} else {
|
||||
console.log("Logged In");
|
||||
window.location.href = "desk";
|
||||
}
|
||||
}
|
||||
})
|
||||
return false;
|
||||
})
|
||||
.prop("disabled", false);
|
||||
})
|
||||
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block style %}
|
||||
|
||||
Reference in New Issue
Block a user