You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
816 B
34 lines
816 B
/** |
|
* Copyright (c) 2014 |
|
* Bjoern Schiessle <schiessle@owncloud.com> |
|
* This file is licensed under the Affero General Public License version 3 or later. |
|
* See the COPYING-README file. |
|
*/ |
|
|
|
/** |
|
* @namespace |
|
* @memberOf OC |
|
*/ |
|
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); |
|
} |
|
} |
|
); |
|
} |
|
}); |
|
$(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(); |
|
}); |
|
});
|
|
|