Fix file actions broken in some browsers, rename delete to do_delete - Thanks Bart Visscher

This commit is contained in:
Michael Gapczynski 2011-08-27 19:32:48 -04:00
parent 0054197d02
commit 2b572f676d
3 changed files with 4 additions and 4 deletions

View file

@ -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){

View file

@ -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;
}

View file

@ -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;
});