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 () {
|
$(function () {
|
||||||
var passwordInput = $("#password-block input");
|
var passwordInput = $("#password-block input");
|
||||||
passwordInput.detach();
|
|
||||||
|
if ($("#password-block").hasClass("hide")) {
|
||||||
|
passwordInput.detach();
|
||||||
|
}
|
||||||
|
|
||||||
$("#password-toggle").click(function() {
|
$("#password-toggle").click(function() {
|
||||||
$("#password-toggle").hide();
|
$("#password-toggle").hide();
|
||||||
$("#password-block").removeClass("hide");
|
$("#password-block").removeClass("hide");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user