summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-04-19 12:05:09 +0200
committerChristoph Wurst <christoph@owncloud.com>2016-04-19 12:05:09 +0200
commit37530f27f00a1b284c339d8b8a11563d79ca5757 (patch)
tree09f0c885d049a2e215aa974ed591bdfa235f99ba
parent59e268763cf69a1874482220a99e3ea0c0f5d503 (diff)
downloadnextcloud-server-37530f27f00a1b284c339d8b8a11563d79ca5757.tar.gz
nextcloud-server-37530f27f00a1b284c339d8b8a11563d79ca5757.zip
migrate jQuery.fn.unload()
-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 7de64f8ade3..3eebd4ff1b7 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -2862,7 +2862,7 @@ $(document).ready(function() {
OCA.Files.FileList.lastAction();
}
});
- $(window).unload(function () {
+ $(window).on('unload', function () {
$(window).trigger('beforeunload');
});