]> git.wh0rd.org Git - tt-rss.git/commitdiff
disable submit button when login form is validated
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 21 Nov 2007 17:43:55 +0000 (18:43 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 21 Nov 2007 17:43:55 +0000 (18:43 +0100)
login_form.php

index 5854078e9e9101a907f01bd895bfac5fb047a92e..090d53e9813dfdb9690280382e72f1583623d790 100644 (file)
@@ -50,6 +50,8 @@ function validateLoginForm(f) {
                        return false;
                }
 
+               document.forms['loginForm']['click'].disabled = true;
+
                return true;
        } catch (e) {
                exception_error("validateLoginForm", e);
@@ -97,7 +99,7 @@ window.onload = init;
                                <label for="remember_me">Remember me on this computer</label>
                        </td></tr> -->
                        <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="rt" 
                                        value="<?php if ($return_to != 'none') { echo $return_to; } ?>">