summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-04-17 17:57:17 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-04-17 17:57:17 +0200
commitc1a60a23498abe6502d207b8c803255e31515577 (patch)
treef1c4551859611475481802e77038b428dc42a896 /apps
parentf2fe9fffd934a9af2c9f9127832dd7b700633924 (diff)
downloadnextcloud-server-c1a60a23498abe6502d207b8c803255e31515577.tar.gz
nextcloud-server-c1a60a23498abe6502d207b8c803255e31515577.zip
use a simple function - OC.Encryption is already defined - fixes #15707
Diffstat (limited to 'apps')
-rw-r--r--apps/encryption/js/encryption.js36
1 files changed, 13 insertions, 23 deletions
diff --git a/apps/encryption/js/encryption.js b/apps/encryption/js/encryption.js
index c02b4d74ae8..94203d93f7f 100644
--- a/apps/encryption/js/encryption.js
+++ b/apps/encryption/js/encryption.js
@@ -5,37 +5,27 @@
* See the COPYING-README file.
*/
-/**
- * @namespace
- * @memberOf OC
- */
-OC.Encryption= {
- MIGRATION_OPEN: 0,
- MIGRATION_COMPLETED: 1,
- MIGRATION_IN_PROGRESS: -1,
+function displayEncryptionWarning () {
- displayEncryptionWarning: function () {
-
- if (!OC.Notification.isHidden()) {
- return;
- }
+ if (!OC.Notification.isHidden()) {
+ return;
+ }
- $.get(
- OC.generateUrl('/apps/encryption/ajax/getStatus')
- , function( result ) {
- if (result.status === "success") {
- OC.Notification.show(result.data.message);
- }
+ $.get(
+ OC.generateUrl('/apps/encryption/ajax/getStatus'),
+ function( result ) {
+ if (result.status === "success") {
+ OC.Notification.show(result.data.message);
}
- );
- }
-};
+ }
+ );
+}
$(document).ready(function() {
// wait for other apps/extensions to register their event handlers and file actions
// in the "ready" clause
_.defer(function() {
- OC.Encryption.displayEncryptionWarning();
+ displayEncryptionWarning();
});
});