Skip to content
Snippets Groups Projects
Commit 75a4e468 authored by Robin Appelman's avatar Robin Appelman
Browse files

do no offer 'undo delete' on opera

opera lacks the onunload to make it work
parent cdf9f8c4
Branches
No related tags found
No related merge requests found
FileList={
useUndo:true,
update:function(fileListHtml) {
$('#fileList').empty().html(fileListHtml);
},
......@@ -163,7 +164,7 @@ FileList={
});
},
do_delete:function(files){
if(FileList.deleteFiles){//finish any ongoing deletes first
if(FileList.deleteFiles || !FileList.useUndo){//finish any ongoing deletes first
FileList.finishDelete(function(){
FileList.do_delete(files);
});
......@@ -196,7 +197,6 @@ FileList={
boolOperationFinished(data, function(){
$('#notification').fadeOut();
$.each(FileList.deleteFiles,function(index,file){
// alert(file);
FileList.remove(file);
});
FileList.deleteCanceled=true;
......@@ -225,7 +225,7 @@ $(document).ready(function(){
}
$('#notification').fadeOut();
});
FileList.useUndo=('onbeforeunload' in window)
$(window).bind('beforeunload', function (){
FileList.finishDelete(null,true);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment