diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-10-09 14:48:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-09 14:48:42 +0200 |
commit | 877823eb9dc08f0675bb1183d35cbb1918348712 (patch) | |
tree | aeb5cadc8b60224c7c9e4b32a0131ea70fc3f659 /apps | |
parent | dcf5a57d01eb8111127867c550d2614842e5a30e (diff) | |
parent | 912729c427d29156a2b301369f544c90fcc7f2b0 (diff) | |
download | nextcloud-server-877823eb9dc08f0675bb1183d35cbb1918348712.tar.gz nextcloud-server-877823eb9dc08f0675bb1183d35cbb1918348712.zip |
Merge pull request #11709 from nextcloud/refactor/jquery-beforeunload
Fix depracted jQuery.bind call
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index ab3607e3db9..94052b10b33 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -3432,7 +3432,7 @@ $(document).ready(function() { // FIXME: unused ? OCA.Files.FileList.useUndo = (window.onbeforeunload)?true:false; - $(window).bind('beforeunload', function () { + $(window).on('beforeunload', function () { if (OCA.Files.FileList.lastAction) { OCA.Files.FileList.lastAction(); } |