Fix depracted jQuery.bind call
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
ea411ccec4
commit
912729c427
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