Browse Source

Don't detach password field if it is not hidden (e.g. when the form says "Wrong Password")

pull/40/head
Pēteris Caune 9 years ago
parent
commit
806800c185
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      static/js/login.js

+ 5
- 1
static/js/login.js View File

@ -1,6 +1,10 @@
$(function () {
var passwordInput = $("#password-block input");
passwordInput.detach();
if ($("#password-block").hasClass("hide")) {
passwordInput.detach();
}
$("#password-toggle").click(function() {
$("#password-toggle").hide();
$("#password-block").removeClass("hide");


Loading…
Cancel
Save