123456789101112131415161718192021222324252627282930313233 |
- OC.Encryption = _.extend(OC.Encryption || {}, {
- displayEncryptionWarning: function () {
- if (!OC.currentUser || !OC.Notification.isHidden()) {
- return;
- }
- $.get(
- OC.generateUrl('/apps/encryption/ajax/getStatus'),
- function (result) {
- if (result.status === "interactionNeeded") {
- OC.Notification.show(result.data.message);
- }
- }
- );
- }
- });
- window.addEventListener('DOMContentLoaded', function() {
-
-
- _.defer(function() {
- OC.Encryption.displayEncryptionWarning();
- });
- });
|