From 4558628ebf216467cf43a02154f303d5360fba8c Mon Sep 17 00:00:00 2001 From: Di Wu Date: Mon, 18 Jan 2016 21:54:20 -0800 Subject: [PATCH] defer inserting the password field --- static/js/login.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/js/login.js b/static/js/login.js index 178ac0fa..8143d276 100644 --- a/static/js/login.js +++ b/static/js/login.js @@ -1,7 +1,9 @@ $(function () { + var passwordInput = $("#password-block input"); + passwordInput.detach(); $("#password-toggle").click(function() { $("#password-toggle").hide(); $("#password-block").removeClass("hide"); + $("#password-block .input-group").append(passwordInput); }); - -}); \ No newline at end of file +});