From 541c40f3cc9389523088c6b05aa96448b6473827 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 8 Jul 2011 19:52:44 +0200 Subject: [PATCH] fix broken directory links for some browsers --- files/js/files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);