add/remove specific CSS class - not all classes

This commit is contained in:
Morris Jobke 2013-10-03 12:22:25 +02:00
parent 0f5fed5409
commit 5501dd623e
1 changed files with 2 additions and 2 deletions

View File

@ -60,10 +60,10 @@ $(document).ready(function(){
} else { } else {
OC.Notification.hide(); OC.Notification.hide();
if (recoveryStatus === "0") { if (recoveryStatus === "0") {
$('p[name="changeRecoveryPasswordBlock"]').attr("class", "hidden"); $('p[name="changeRecoveryPasswordBlock"]').addClass("hidden");
} else { } else {
$('input:password[name="changeRecoveryPassword"]').val(""); $('input:password[name="changeRecoveryPassword"]').val("");
$('p[name="changeRecoveryPasswordBlock"]').removeAttr("class"); $('p[name="changeRecoveryPasswordBlock"]').removeClass("hidden");
} }
} }
} }