From: Jef van Schendel Date: Thu, 29 Dec 2011 21:56:42 +0000 (+0100) Subject: Forgot to include the newly created JS file X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=550d48d04059d94894573d93aed98f4faa63e3fb;p=mediagoblin.git Forgot to include the newly created JS file --- diff --git a/mediagoblin/static/js/show_password.js b/mediagoblin/static/js/show_password.js new file mode 100644 index 00000000..519b29c1 --- /dev/null +++ b/mediagoblin/static/js/show_password.js @@ -0,0 +1,19 @@ +$(document).ready(function(){ + $("#password").after(''); + $('#password_clear').hide(); + $('#password_boolean').click(function(){ + if($('#password_boolean').prop("checked")) { + $('#password_clear').val($('#password').val()); + $('#password').hide(); + $('#password_clear').show(); + } else { + $('#password').val($('#password_clear').val()); + $('#password_clear').hide(); + $('#password').show(); + }; + }); + $('#password,#password_clear').keyup(function(){ + $('#password').val($(this).val()); + $('#password_clear').val($(this).val()); + }); +});