diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-20 13:30:35 +0300 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2020-07-20 13:42:08 +0300 |
commit | 6fcd075730dbd63d5dbb69da0ca5983b51a7240e (patch) | |
tree | 3b91e443159f6322e9af53bf495c17bd76c0ab7b /apps/files/js/filelist.js | |
parent | b2e3466005f8fec7a753b078871f54c9fd5debb8 (diff) |
Use DOMContentLoaded and fix sharebymail loading issue
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r-- | apps/files/js/filelist.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 55ddaf1b4de..cb93ded939e 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -648,7 +648,7 @@ return; } - if (!fileName) { + if (!fileName && OCA.Files.Sidebar.close) { OCA.Files.Sidebar.close() return } else if (typeof fileName !== 'string') { @@ -3839,7 +3839,7 @@ OCA.Files.FileList = FileList; })(); -$(document).ready(function() { +window.addEventListener('DOMContentLoaded', function() { // FIXME: unused ? OCA.Files.FileList.useUndo = (window.onbeforeunload)?true:false; $(window).on('beforeunload', function () { |