From 1efaefda1fa9eee274898499817a4001c0f2c3c2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 12 Aug 2007 03:30:18 +0100 Subject: [PATCH] disable login submit button when changing language --- login_form.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/login_form.php b/login_form.php index f6ed750e..9555f56f 100644 --- a/login_form.php +++ b/login_form.php @@ -24,9 +24,15 @@ function init() { } function languageChange(elem) { - var lang = elem[elem.selectedIndex].value; - setCookie("ttrss_lang", lang, ); - window.location.reload(); + try { + document.forms['loginForm']['click'].disabled = true; + + var lang = elem[elem.selectedIndex].value; + setCookie("ttrss_lang", lang, ); + window.location.reload(); + } catch (e) { + exception_error("languageChange", e); + } } @@ -69,7 +75,7 @@ window.onload = init; --> - + -- 2.39.5