forked from GithubBackups/healthchecks
Don't detach password field if it is not hidden (e.g. when the form says "Wrong Password")
This commit is contained in:
parent
63cc186fa3
commit
806800c185
@ -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…
x
Reference in New Issue
Block a user