diff options
author | Jef van Schendel <mail@jefvanschendel.nl> | 2011-12-29 22:40:45 +0100 |
---|---|---|
committer | Jef van Schendel <mail@jefvanschendel.nl> | 2011-12-29 22:40:45 +0100 |
commit | dab1d70280652049078add60c6c44f675fbe267c (patch) | |
tree | aa4a0447fc4ec05781447bd655d0ffa7d659f59b /mediagoblin/templates | |
parent | 9f264942d88c563f9d310c3fea4a554731c1bbbc (diff) | |
download | mediagoblin-dab1d70280652049078add60c6c44f675fbe267c.tar.lz mediagoblin-dab1d70280652049078add60c6c44f675fbe267c.tar.xz mediagoblin-dab1d70280652049078add60c6c44f675fbe267c.zip |
Finished #485 and worked out bugs: password fields always update, added margins, fixed Chrome width bug, wrapped checkbox in label element
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r-- | mediagoblin/templates/mediagoblin/auth/register.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mediagoblin/templates/mediagoblin/auth/register.html b/mediagoblin/templates/mediagoblin/auth/register.html index bded1d7e..73eae0d8 100644 --- a/mediagoblin/templates/mediagoblin/auth/register.html +++ b/mediagoblin/templates/mediagoblin/auth/register.html @@ -22,7 +22,7 @@ {% block mediagoblin_head %} <script> $(document).ready(function(){ - $("#password").after('<input type="text" value="" name="password_clear" id="password_clear" /><input type="checkbox" id="password_boolean" />Show password'); + $("#password").after('<input type="text" value="" name="password_clear" id="password_clear" /><label><input type="checkbox" id="password_boolean" />Show password</label>'); $('#password_clear').hide(); $('#password_boolean').click(function(){ if($('#password_boolean').prop("checked")) { @@ -35,6 +35,10 @@ $('#password').show(); }; }); + $('#password,#password_clear').keyup(function(){ + $('#password').val($(this).val()); + $('#password_clear').val($(this).val()); + }); }); </script> {% endblock mediagoblin_head %} |