From 84bd83b1dcbafa109517bc1365fde35d411ed634 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 29 Apr 2012 16:09:41 +0200 Subject: [PATCH] fix file deletion --- apps/files/js/filelist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index febdfc473b..31fb5f892e 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -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();