aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-06-06 15:13:02 +0200
committerVincent Petry <pvince81@owncloud.com>2014-06-06 15:17:55 +0200
commitd3d0035a9a81ea5d3e314141069f4914e3c6ce54 (patch)
tree59e9fe9a626184ae1d1688a67116203607641e0a /apps/files/js/fileactions.js
parent933c05566e21c27e4f2d4b4e9c2d54e7b363d304 (diff)
downloadnextcloud-server-d3d0035a9a81ea5d3e314141069f4914e3c6ce54.tar.gz
nextcloud-server-d3d0035a9a81ea5d3e314141069f4914e3c6ce54.zip
Use actual file path on rename/delete
When renaming or deleting a file that is in a subdirectory, performing the action from the sharing overview or another file list view, the actual directory of the file must be used instead of the current directory.
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r--apps/files/js/fileactions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index de02bf5e730..04078d25706 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -255,7 +255,7 @@
this.register('all', 'Delete', OC.PERMISSION_DELETE, function () {
return OC.imagePath('core', 'actions/delete');
}, function (filename, context) {
- context.fileList.do_delete(filename);
+ context.fileList.do_delete(filename, context.dir);
$('.tipsy').remove();
});