summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/js
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-12-02 11:39:53 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2013-12-02 11:50:55 +0100
commit8ce3ea3e2c0fba2073cc9f279ab14f9d2bdbfdc4 (patch)
tree355788276794ca5ff7555f1c323fe26dc82449aa /apps/files_trashbin/js
parent71589e65d24657a6d61fc22b3c67d5a1f5b1404a (diff)
downloadnextcloud-server-8ce3ea3e2c0fba2073cc9f279ab14f9d2bdbfdc4.tar.gz
nextcloud-server-8ce3ea3e2c0fba2073cc9f279ab14f9d2bdbfdc4.zip
fix delete files from trash bin
Diffstat (limited to 'apps/files_trashbin/js')
-rw-r--r--apps/files_trashbin/js/trash.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js
index 2c1af34ccec..b157fdf1025 100644
--- a/apps/files_trashbin/js/trash.js
+++ b/apps/files_trashbin/js/trash.js
@@ -35,7 +35,7 @@ $(document).ready(function() {
deleteAction.removeClass('delete-icon').addClass('progress-icon');
disableActions();
$.post(OC.filePath('files_trashbin', 'ajax', 'delete.php'),
- {files: JSON.stringify([filename]), dirlisting: tr.attr('data-dirlisting')},
+ {files: JSON.stringify([$('#dir').val() + '/' +filename]), dirlisting: tr.attr('data-dirlisting')},
function(result) {
for (var i = 0; i < result.data.success.length; i++) {
var row = document.getElementById(result.data.success[i].filename);
@@ -136,7 +136,8 @@ $(document).ready(function() {
var params = {};
if (allFiles) {
params = {
- allfiles: true
+ allfiles: true,
+ dir: $('#dir').val()
};
}
else {