aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r--apps/files/js/fileactions.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 015635c2e1d..8d2178578e5 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -617,6 +617,20 @@
}
});
+ this.registerAction({
+ name: 'Move',
+ displayName: t('files', 'Move'),
+ mime: 'all',
+ order: -25,
+ permissions: OC.PERMISSION_UPDATE,
+ iconClass: 'icon-rename',
+ actionHandler: function (filename, context) {
+ OC.dialogs.filepicker(t('files', 'Target folder'), function(targetPath) {
+ context.fileList.move(filename, targetPath);
+ }, false, "httpd/unix-directory", true);
+ }
+ });
+
this.register('dir', 'Open', OC.PERMISSION_READ, '', function (filename, context) {
var dir = context.$file.attr('data-path') || context.fileList.getCurrentDirectory();
context.fileList.changeDirectory(OC.joinPaths(dir, filename), true, false, parseInt(context.$file.attr('data-id'), 10));