aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_encryption
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-10-03 12:22:25 +0200
committerMorris Jobke <morris.jobke@gmail.com>2013-10-03 12:22:25 +0200
commit5501dd623e206e2de40558aa8e7e1c5c7b93d6e8 (patch)
tree12eeaf132b23bdb92e18b78e219c14ec544d9670 /apps/files_encryption
parent0f5fed5409f364ae0c5cd41dc7163101383fdb1f (diff)
downloadnextcloud-server-5501dd623e206e2de40558aa8e7e1c5c7b93d6e8.tar.gz
nextcloud-server-5501dd623e206e2de40558aa8e7e1c5c7b93d6e8.zip
add/remove specific CSS class - not all classes
Diffstat (limited to 'apps/files_encryption')
-rw-r--r--apps/files_encryption/js/settings-admin.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_encryption/js/settings-admin.js b/apps/files_encryption/js/settings-admin.js
index 3d73ea19820..c2140a6f1eb 100644
--- a/apps/files_encryption/js/settings-admin.js
+++ b/apps/files_encryption/js/settings-admin.js
@@ -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");
}
}
}