Merge pull request #11709 from nextcloud/refactor/jquery-beforeunload
Fix depracted jQuery.bind call
This commit is contained in:
commit
877823eb9d
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue