summaryrefslogtreecommitdiffstats
path: root/apps/encryption/js/encryption.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/encryption/js/encryption.js')
-rw-r--r--apps/encryption/js/encryption.js33
1 files changed, 18 insertions, 15 deletions
diff --git a/apps/encryption/js/encryption.js b/apps/encryption/js/encryption.js
index 94203d93f7f..32b50553f77 100644
--- a/apps/encryption/js/encryption.js
+++ b/apps/encryption/js/encryption.js
@@ -5,27 +5,30 @@
* See the COPYING-README file.
*/
+if (!OC.Encryption) {
+ OC.Encryption = {};
+}
-function displayEncryptionWarning () {
-
- if (!OC.Notification.isHidden()) {
- return;
- }
-
- $.get(
- OC.generateUrl('/apps/encryption/ajax/getStatus'),
- function( result ) {
- if (result.status === "success") {
- OC.Notification.show(result.data.message);
- }
+OC.Encryption = {
+ displayEncryptionWarning: function () {
+ if (!OC.Notification.isHidden()) {
+ return;
}
- );
-}
+ $.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() {
- displayEncryptionWarning();
+ OC.Encryption.displayEncryptionWarning();
});
});