mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-06-29 12:20:51 +02:00
disable submit button when login form is validated
This commit is contained in:
parent
f0b3ae06d9
commit
a0b9990ad4
|
@ -50,6 +50,8 @@ function validateLoginForm(f) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.forms['loginForm']['click'].disabled = true;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("validateLoginForm", e);
|
exception_error("validateLoginForm", e);
|
||||||
|
@ -97,7 +99,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="<?php echo __('Login') ?>" name='click'>
|
<input type="submit" class="button" value="<?php echo __('Log in') ?>" 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; } ?>">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user