aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/public.js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2014-01-12 03:45:30 -0800
committerLukas Reschke <lukas@statuscode.ch>2014-01-12 03:45:30 -0800
commit85e00ad35a63d2d728140f3ece685d79d7a6140c (patch)
tree4300040f44d951823645d35d98e1b263de49fd07 /apps/files_sharing/js/public.js
parentb24c21b00f0116e8749f37646cc25f798992bf05 (diff)
parent1042733634622b234beb52e24505d56a9883b4eb (diff)
downloadnextcloud-server-85e00ad35a63d2d728140f3ece685d79d7a6140c.tar.gz
nextcloud-server-85e00ad35a63d2d728140f3ece685d79d7a6140c.zip
Merge pull request #6713 from owncloud/files-filenameescapingfixes
Fixed various file name escaping issues in core apps
Diffstat (limited to 'apps/files_sharing/js/public.js')
-rw-r--r--apps/files_sharing/js/public.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index eacd4096ed8..2e34e6f9bc5 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -29,19 +29,19 @@ $(document).ready(function() {
}
}
FileActions.register('dir', 'Open', OC.PERMISSION_READ, '', function(filename) {
- var tr = $('tr').filterAttr('data-file', filename);
+ var tr = FileList.findFileEl(filename);
if (tr.length > 0) {
window.location = $(tr).find('a.name').attr('href');
}
});
FileActions.register('file', 'Download', OC.PERMISSION_READ, '', function(filename) {
- var tr = $('tr').filterAttr('data-file', filename);
+ var tr = FileList.findFileEl(filename);
if (tr.length > 0) {
window.location = $(tr).find('a.name').attr('href');
}
});
FileActions.register('dir', 'Download', OC.PERMISSION_READ, '', function(filename) {
- var tr = $('tr').filterAttr('data-file', filename);
+ var tr = FileList.findFileEl(filename);
if (tr.length > 0) {
window.location = $(tr).find('a.name').attr('href')+'&download';
}