Browse Source

defer inserting the password field

pull/32/head
Di Wu 9 years ago
parent
commit
4558628ebf
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      static/js/login.js

+ 4
- 2
static/js/login.js View File

@ -1,7 +1,9 @@
$(function () { $(function () {
var passwordInput = $("#password-block input");
passwordInput.detach();
$("#password-toggle").click(function() { $("#password-toggle").click(function() {
$("#password-toggle").hide(); $("#password-toggle").hide();
$("#password-block").removeClass("hide"); $("#password-block").removeClass("hide");
$("#password-block .input-group").append(passwordInput);
}); });
});
});

Loading…
Cancel
Save