Disable login button on authentication
This commit is contained in:
parent
b565327a4a
commit
7038766095
@ -76,6 +76,7 @@ $(function() {
|
|||||||
refresh();
|
refresh();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
login.find(".btn").prop("disabled", false);
|
||||||
var token = $.cookie("token");
|
var token = $.cookie("token");
|
||||||
if (token) {
|
if (token) {
|
||||||
$.removeCookie("token");
|
$.removeCookie("token");
|
||||||
@ -655,11 +656,11 @@ $(function() {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var event = "auth";
|
var event = "auth";
|
||||||
var form = $(this);
|
var form = $(this);
|
||||||
|
form.find(".btn")
|
||||||
|
.attr("disabled", true)
|
||||||
|
.end();
|
||||||
if (form.closest(".window").attr("id") == "connect") {
|
if (form.closest(".window").attr("id") == "connect") {
|
||||||
event = "conn";
|
event = "conn";
|
||||||
form.find(".btn")
|
|
||||||
.attr("disabled", true)
|
|
||||||
.end();
|
|
||||||
}
|
}
|
||||||
var values = {};
|
var values = {};
|
||||||
$.each(form.serializeArray(), function(i, obj) {
|
$.each(form.serializeArray(), function(i, obj) {
|
||||||
|
Loading…
Reference in New Issue
Block a user