fix file deletion

This commit is contained in:
Robin Appelman 2012-04-29 16:09:41 +02:00
parent e3adbcb7d5
commit 84bd83b1dc
1 changed files with 2 additions and 2 deletions

View File

@ -191,9 +191,9 @@ FileList={
if(!FileList.deleteCanceled && FileList.deleteFiles){
var fileNames=FileList.deleteFiles.join(';');
$.ajax({
url: 'ajax/delete.php',
url: OC.filePath('files', 'ajax', 'delete.php'),
async:!sync,
data: "dir="+$('#dir').val()+"&files="+encodeURIComponent(fileNames),
data: {dir:$('#dir').val(),files:fileNames},
complete: function(data){
boolOperationFinished(data, function(){
$('#notification').fadeOut();