aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/public.js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-23 00:39:11 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-01-23 00:39:11 +0100
commitf950ce82ae137977eeca5babe69d732ca55cbeaa (patch)
tree4c1b949c81b45ce081503343780eea91afd6b659 /apps/files_sharing/js/public.js
parent4ec6debe2b145b0df106c7e5a3f4ed0cf2885957 (diff)
parent4474421ada2a4b5642f1a081d6491d7858b3b9b0 (diff)
downloadnextcloud-server-f950ce82ae137977eeca5babe69d732ca55cbeaa.tar.gz
nextcloud-server-f950ce82ae137977eeca5babe69d732ca55cbeaa.zip
Merge branch 'master' into mobile-style
Conflicts: apps/files/js/files.js apps/files_sharing/css/public.css apps/files_sharing/js/public.js apps/files_sharing/templates/public.php
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 63e1ccaadfa..31572f5ccf5 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -27,19 +27,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';
}