diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-20 12:30:35 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-20 12:42:08 +0200 |
commit | 6fcd075730dbd63d5dbb69da0ca5983b51a7240e (patch) | |
tree | 3b91e443159f6322e9af53bf495c17bd76c0ab7b /apps/encryption/js | |
parent | b2e3466005f8fec7a753b078871f54c9fd5debb8 (diff) | |
download | nextcloud-server-6fcd075730dbd63d5dbb69da0ca5983b51a7240e.tar.gz nextcloud-server-6fcd075730dbd63d5dbb69da0ca5983b51a7240e.zip |
Use DOMContentLoaded and fix sharebymail loading issue
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/encryption/js')
-rw-r--r-- | apps/encryption/js/encryption.js | 2 | ||||
-rw-r--r-- | apps/encryption/js/settings-admin.js | 2 | ||||
-rw-r--r-- | apps/encryption/js/settings-personal.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/encryption/js/encryption.js b/apps/encryption/js/encryption.js index 361347b44b7..6a04e897615 100644 --- a/apps/encryption/js/encryption.js +++ b/apps/encryption/js/encryption.js @@ -25,7 +25,7 @@ OC.Encryption = _.extend(OC.Encryption || {}, { ); } }); -$(document).ready(function() { +window.addEventListener('DOMContentLoaded', function() { // wait for other apps/extensions to register their event handlers and file actions // in the "ready" clause _.defer(function() { diff --git a/apps/encryption/js/settings-admin.js b/apps/encryption/js/settings-admin.js index 9b00a4ec627..5252dc69e98 100644 --- a/apps/encryption/js/settings-admin.js +++ b/apps/encryption/js/settings-admin.js @@ -7,7 +7,7 @@ * See the COPYING-README file. */ -$(document).ready(function () { +window.addEventListener('DOMContentLoaded', function () { $('input:button[name="enableRecoveryKey"]').click(function () { diff --git a/apps/encryption/js/settings-personal.js b/apps/encryption/js/settings-personal.js index 75ebab5059c..dec54e3e23a 100644 --- a/apps/encryption/js/settings-personal.js +++ b/apps/encryption/js/settings-personal.js @@ -24,7 +24,7 @@ OC.Encryption = _.extend(OC.Encryption || {}, { } }); -$(document).ready(function () { +window.addEventListener('DOMContentLoaded', function () { // Trigger ajax on recoveryAdmin status change $('input:radio[name="userEnableRecovery"]').change( |