summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-10-09 14:48:42 +0200
committerGitHub <noreply@github.com>2018-10-09 14:48:42 +0200
commit877823eb9dc08f0675bb1183d35cbb1918348712 (patch)
treeaeb5cadc8b60224c7c9e4b32a0131ea70fc3f659 /apps
parentdcf5a57d01eb8111127867c550d2614842e5a30e (diff)
parent912729c427d29156a2b301369f544c90fcc7f2b0 (diff)
downloadnextcloud-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.js2
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();
}