This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
nielsperetzke
/
healthchecks
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
32
Wiki
Activity
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
63cc186fa3
commit
806800c185
1 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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"
)
;
Write
Preview
Loading…
Cancel
Save