Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-07-20 13:30:35 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-07-20 13:42:08 +0300
commit6fcd075730dbd63d5dbb69da0ca5983b51a7240e (patch)
tree3b91e443159f6322e9af53bf495c17bd76c0ab7b /apps/federatedfilesharing/js
parentb2e3466005f8fec7a753b078871f54c9fd5debb8 (diff)
Use DOMContentLoaded and fix sharebymail loading issue
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/federatedfilesharing/js')
-rw-r--r--apps/federatedfilesharing/js/settings-admin.js2
-rw-r--r--apps/federatedfilesharing/js/settings-personal.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/federatedfilesharing/js/settings-admin.js b/apps/federatedfilesharing/js/settings-admin.js
index a0b8feb945e..33e03af6a0d 100644
--- a/apps/federatedfilesharing/js/settings-admin.js
+++ b/apps/federatedfilesharing/js/settings-admin.js
@@ -1,4 +1,4 @@
-$(document).ready(function() {
+window.addEventListener('DOMContentLoaded', function() {
$('#fileSharingSettings input').change(function() {
var value = 'no';
diff --git a/apps/federatedfilesharing/js/settings-personal.js b/apps/federatedfilesharing/js/settings-personal.js
index 407493640b1..6f01173807b 100644
--- a/apps/federatedfilesharing/js/settings-personal.js
+++ b/apps/federatedfilesharing/js/settings-personal.js
@@ -1,4 +1,4 @@
-$(document).ready(function() {
+window.addEventListener('DOMContentLoaded', function() {
$('#fileSharingSettings button.pop-up').click(function() {
var url = $(this).data('url');