From 703876609508df28ebda6775fcda0233d118380f Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Thu, 9 Oct 2014 16:35:29 +0200 Subject: [PATCH] Disable login button on authentication --- client/js/shout.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/js/shout.js b/client/js/shout.js index 7187c465..c26ec443 100644 --- a/client/js/shout.js +++ b/client/js/shout.js @@ -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); + form.find(".btn") + .attr("disabled", true) + .end(); if (form.closest(".window").attr("id") == "connect") { event = "conn"; - form.find(".btn") - .attr("disabled", true) - .end(); } var values = {}; $.each(form.serializeArray(), function(i, obj) {