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

This commit is contained in:
Pēteris Caune 2016-01-23 15:25:16 +02:00
parent 63cc186fa3
commit 806800c185

View File

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