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/files_external/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/files_external/js')
-rw-r--r-- | apps/files_external/js/app.js | 2 | ||||
-rw-r--r-- | apps/files_external/js/oauth1.js | 2 | ||||
-rw-r--r-- | apps/files_external/js/oauth2.js | 2 | ||||
-rw-r--r-- | apps/files_external/js/public_key.js | 2 | ||||
-rw-r--r-- | apps/files_external/js/settings.js | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_external/js/app.js b/apps/files_external/js/app.js index 4406882cd21..cf74ae350d7 100644 --- a/apps/files_external/js/app.js +++ b/apps/files_external/js/app.js @@ -65,7 +65,7 @@ OCA.Files_External.App = { } }; -$(document).ready(function() { +window.addEventListener('DOMContentLoaded', function() { $('#app-content-extstoragemounts').on('show', function(e) { OCA.Files_External.App.initList($(e.target)); }); diff --git a/apps/files_external/js/oauth1.js b/apps/files_external/js/oauth1.js index 56e674b213b..0fee36077c6 100644 --- a/apps/files_external/js/oauth1.js +++ b/apps/files_external/js/oauth1.js @@ -1,4 +1,4 @@ -$(document).ready(function() { +window.addEventListener('DOMContentLoaded', function() { function displayGranted($tr) { $tr.find('.configuration input.auth-param').attr('disabled', 'disabled').addClass('disabled-success'); diff --git a/apps/files_external/js/oauth2.js b/apps/files_external/js/oauth2.js index fb7160d6684..086a95f038f 100644 --- a/apps/files_external/js/oauth2.js +++ b/apps/files_external/js/oauth2.js @@ -1,4 +1,4 @@ -$(document).ready(function() { +window.addEventListener('DOMContentLoaded', function() { function displayGranted($tr) { $tr.find('.configuration input.auth-param').attr('disabled', 'disabled').addClass('disabled-success'); diff --git a/apps/files_external/js/public_key.js b/apps/files_external/js/public_key.js index 9b9ca6038c8..7fa47f09f1b 100644 --- a/apps/files_external/js/public_key.js +++ b/apps/files_external/js/public_key.js @@ -1,4 +1,4 @@ -$(document).ready(function() { +window.addEventListener('DOMContentLoaded', function() { OCA.Files_External.Settings.mountConfig.whenSelectAuthMechanism(function($tr, authMechanism, scheme, onCompletion) { if (scheme === 'publickey' && authMechanism === 'publickey::rsa') { diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index dff352eea3d..d6d8c1c7347 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -1295,7 +1295,7 @@ MountConfigListView.prototype = _.extend({ } }, OC.Backbone.Events); -$(document).ready(function() { +window.addEventListener('DOMContentLoaded', function() { var enabled = $('#files_external').attr('data-encryption-enabled'); var encryptionEnabled = (enabled ==='true')? true: false; var mountConfigListView = new MountConfigListView($('#externalStorage'), { |