aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-09 12:00:48 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-09 12:00:48 +0200
commit912729c427d29156a2b301369f544c90fcc7f2b0 (patch)
treed8690f0ab7a1df996075aa68b051c537a9045d3c
parentea411ccec4095e155755b4edf76fd1490e509e5d (diff)
downloadnextcloud-server-912729c427d29156a2b301369f544c90fcc7f2b0.tar.gz
nextcloud-server-912729c427d29156a2b301369f544c90fcc7f2b0.zip
Fix depracted jQuery.bind call
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-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();
}