summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-07-08 19:52:44 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-07-08 19:52:51 +0200
commit541c40f3cc9389523088c6b05aa96448b6473827 (patch)
treee5e5b8cd3663473636e02384a7a0147a311df25c /files
parente3e0a28b62dff84cee4ab76af38886cbb1ab846a (diff)
downloadnextcloud-server-541c40f3cc9389523088c6b05aa96448b6473827.tar.gz
nextcloud-server-541c40f3cc9389523088c6b05aa96448b6473827.zip
fix broken directory links for some browsers
Diffstat (limited to 'files')
-rw-r--r--files/js/files.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/js/files.js b/files/js/files.js
index 19ce99a9bfb..3c02110fe26 100644
--- a/files/js/files.js
+++ b/files/js/files.js
@@ -39,7 +39,7 @@ $(document).ready(function() {
// Sets the file link behaviour :
$('td.filename a').live('click',function(event) {
event.preventDefault();
- var filename=$(this).text();
+ var filename=$(this).parent().parent().attr('data-file');
var mime=$(this).parent().parent().attr('data-mime');
var type=$(this).parent().parent().attr('data-type');
var action=FileActions.getDefault(mime,type);