From: Andrew Dolgov Date: Sun, 12 Aug 2007 02:30:18 +0000 (+0100) Subject: disable login submit button when changing language X-Git-Tag: 1.2.14~55 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1efaefda1fa9eee274898499817a4001c0f2c3c2;p=tt-rss.git disable login submit button when changing language --- 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; --> - +