Skip to content
Snippets Groups Projects
Commit 0ca6398a authored by Thomas Müller's avatar Thomas Müller
Browse files

Revert "use a simple function - OC.Encryption is already defined - fixes #15707"

This reverts commit c1a60a23.
parent a255866a
Branches
No related tags found
No related merge requests found
......@@ -5,27 +5,37 @@
* See the COPYING-README file.
*/
/**
* @namespace
* @memberOf OC
*/
OC.Encryption= {
MIGRATION_OPEN: 0,
MIGRATION_COMPLETED: 1,
MIGRATION_IN_PROGRESS: -1,
function displayEncryptionWarning () {
if (!OC.Notification.isHidden()) {
return;
}
displayEncryptionWarning: function () {
$.get(
OC.generateUrl('/apps/encryption/ajax/getStatus'),
function( result ) {
if (result.status === "success") {
OC.Notification.show(result.data.message);
}
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();
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment