summaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-09-17 19:10:46 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-09-17 19:10:46 +0200
commitb59ce403d8ea80ba7aac5683f667853218757502 (patch)
tree2e657117cc3e9fd7a8dfe032945cb1e9a63edc46 /apps/files/js/fileactions.js
parent2c9b3d32efa466b655a7f24c5022a42045ef482f (diff)
parent9d18e16c77e8c2690dd23dd19ca1f8e1968161c8 (diff)
downloadnextcloud-server-b59ce403d8ea80ba7aac5683f667853218757502.tar.gz
nextcloud-server-b59ce403d8ea80ba7aac5683f667853218757502.zip
Merge branch 'master' into fix_3728_with_file_exists_dialog
Conflicts: apps/files/css/files.css apps/files/js/file-upload.js apps/files/js/filelist.js apps/files/js/files.js apps/files_sharing/js/public.js core/js/jquery.ocdialog.js core/js/oc-dialogs.js
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r--apps/files/js/fileactions.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 703e543bf4b..af7c757276e 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -196,13 +196,12 @@ FileActions.register('all', 'Rename', OC.PERMISSION_UPDATE, function () {
FileList.rename(filename);
});
-
FileActions.register('dir', 'Open', OC.PERMISSION_READ, '', function (filename) {
- var dir = $('#dir').val();
+ var dir = $('#dir').val() || '/';
if (dir !== '/') {
dir = dir + '/';
}
- window.location = OC.linkTo('files', 'index.php') + '?dir=' + encodeURIComponent(dir + filename);
+ FileList.changeDirectory(dir + filename);
});
FileActions.setDefault('dir', 'Open');