add/remove specific CSS class - not all classes
This commit is contained in:
parent
0f5fed5409
commit
5501dd623e
|
@ -60,10 +60,10 @@ $(document).ready(function(){
|
|||
} else {
|
||||
OC.Notification.hide();
|
||||
if (recoveryStatus === "0") {
|
||||
$('p[name="changeRecoveryPasswordBlock"]').attr("class", "hidden");
|
||||
$('p[name="changeRecoveryPasswordBlock"]').addClass("hidden");
|
||||
} else {
|
||||
$('input:password[name="changeRecoveryPassword"]').val("");
|
||||
$('p[name="changeRecoveryPasswordBlock"]').removeAttr("class");
|
||||
$('p[name="changeRecoveryPasswordBlock"]').removeClass("hidden");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue