Disable login button on authentication

This commit is contained in:
Mattias Erming 2014-10-09 16:35:29 +02:00
parent b565327a4a
commit 7038766095
1 changed files with 4 additions and 3 deletions

View File

@ -76,6 +76,7 @@ $(function() {
refresh();
return;
}
login.find(".btn").prop("disabled", false);
var token = $.cookie("token");
if (token) {
$.removeCookie("token");
@ -655,11 +656,11 @@ $(function() {
e.preventDefault();
var event = "auth";
var form = $(this);
if (form.closest(".window").attr("id") == "connect") {
event = "conn";
form.find(".btn")
.attr("disabled", true)
.end();
if (form.closest(".window").attr("id") == "connect") {
event = "conn";
}
var values = {};
$.each(form.serializeArray(), function(i, obj) {