mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Fix file actions broken in some browsers, rename delete to do_delete - Thanks Bart Visscher
This commit is contained in:
parent
0054197d02
commit
2b572f676d
3 changed files with 4 additions and 4 deletions
|
|
@ -129,7 +129,7 @@ FileActions.register('all','Download',function(){return OC.imagePath('core','act
|
|||
});
|
||||
|
||||
FileActions.register('all','Delete',function(){return OC.imagePath('core','actions/delete')},function(filename){
|
||||
FileList.delete(filename);
|
||||
FileList.do_delete(filename);
|
||||
});
|
||||
|
||||
FileActions.register('all','Rename',function(){return OC.imagePath('core','actions/rename')},function(filename){
|
||||
|
|
|
|||
|
|
@ -150,10 +150,10 @@ FileList={
|
|||
form.trigger('submit');
|
||||
});
|
||||
},
|
||||
delete:function(files){
|
||||
do_delete:function(files){
|
||||
if(FileList.deleteFiles){//finish any ongoing deletes first
|
||||
FileList.finishDelete(function(){
|
||||
FileList.delete(files);
|
||||
FileList.do_delete(files);
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ $(document).ready(function() {
|
|||
$('.delete').click(function(event) {
|
||||
var files=getSelectedFiles('name');
|
||||
event.preventDefault();
|
||||
FileList.delete(files);
|
||||
FileList.do_delete(files);
|
||||
return false;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue