diff --git a/login_form.php b/login_form.php index f6ed750ec..9555f56f9 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; -->