Fix depracted jQuery.bind call
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
ea411ccec4
commit
912729c427
|
@ -3432,7 +3432,7 @@
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
// FIXME: unused ?
|
// FIXME: unused ?
|
||||||
OCA.Files.FileList.useUndo = (window.onbeforeunload)?true:false;
|
OCA.Files.FileList.useUndo = (window.onbeforeunload)?true:false;
|
||||||
$(window).bind('beforeunload', function () {
|
$(window).on('beforeunload', function () {
|
||||||
if (OCA.Files.FileList.lastAction) {
|
if (OCA.Files.FileList.lastAction) {
|
||||||
OCA.Files.FileList.lastAction();
|
OCA.Files.FileList.lastAction();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue