diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-10-03 12:22:25 +0200 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-10-03 12:22:25 +0200 |
commit | 5501dd623e206e2de40558aa8e7e1c5c7b93d6e8 (patch) | |
tree | 12eeaf132b23bdb92e18b78e219c14ec544d9670 /apps/files_encryption | |
parent | 0f5fed5409f364ae0c5cd41dc7163101383fdb1f (diff) | |
download | nextcloud-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.js | 4 |
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"); } } } |