summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-08-12 17:25:27 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-08-12 17:25:27 +0200
commit53bb89824deaf97095acf6bcc2997aa7141dd573 (patch)
tree8d1ef8a3d2d71295480c1da221fdf514097e9f1e /apps/files/js
parent0bab8935c95c249405f5b12f4724d189c4ec648b (diff)
downloadnextcloud-server-53bb89824deaf97095acf6bcc2997aa7141dd573.tar.gz
nextcloud-server-53bb89824deaf97095acf6bcc2997aa7141dd573.zip
check if some encrypted files are left after the app was disabled and warn the user
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/files.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 98fc53b71a9..d6886fc17e4 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -81,9 +81,23 @@ Files={
if (usedSpacePercent > 90) {
OC.Notification.show(t('files', 'Your storage is almost full ({usedSpacePercent}%)', {usedSpacePercent: usedSpacePercent}));
}
+ },
+
+ displayEncryptionWarning: function() {
+
+ if (!OC.Notification.isHidden()) {
+ return;
+ }
+
+ var encryptedFiles = $('#encryptedFiles').val();
+ if (encryptedFiles === '1') {
+ OC.Notification.show(t('files_encryption', 'Encryption was disabled but your files are still encrypted. Please go to your personal settings to decrypt your files.', "www.schiessle.org"));
+ return;
+ }
}
};
$(document).ready(function() {
+ Files.displayEncryptionWarning();
Files.bindKeyboardShortcuts(document, jQuery);
$('#fileList tr').each(function(){
//little hack to set unescape filenames in attribute