mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-21 23:31:28 +00:00
disable login submit button when changing language
This commit is contained in:
@@ -24,9 +24,15 @@ function init() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
function languageChange(elem) {
|
function languageChange(elem) {
|
||||||
var lang = elem[elem.selectedIndex].value;
|
try {
|
||||||
setCookie("ttrss_lang", lang, <?php print SESSION_COOKIE_LIFETIME ?>);
|
document.forms['loginForm']['click'].disabled = true;
|
||||||
window.location.reload();
|
|
||||||
|
var lang = elem[elem.selectedIndex].value;
|
||||||
|
setCookie("ttrss_lang", lang, <?php print SESSION_COOKIE_LIFETIME ?>);
|
||||||
|
window.location.reload();
|
||||||
|
} catch (e) {
|
||||||
|
exception_error("languageChange", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -69,7 +75,7 @@ window.onload = init;
|
|||||||
<label for="remember_me">Remember me on this computer</label>
|
<label for="remember_me">Remember me on this computer</label>
|
||||||
</td></tr> -->
|
</td></tr> -->
|
||||||
<tr><td colspan="2" align="right" class="innerLoginCell">
|
<tr><td colspan="2" align="right" class="innerLoginCell">
|
||||||
<input type="submit" class="button" value="Login">
|
<input type="submit" class="button" value="Login" name='click'>
|
||||||
<input type="hidden" name="action" value="login">
|
<input type="hidden" name="action" value="login">
|
||||||
<input type="hidden" name="rt"
|
<input type="hidden" name="rt"
|
||||||
value="<?php if ($return_to != 'none') { echo $return_to; } ?>">
|
value="<?php if ($return_to != 'none') { echo $return_to; } ?>">
|
||||||
|
|||||||
Reference in New Issue
Block a user