aboutsummaryrefslogtreecommitdiffstats
path: root/files/js/files.js
diff options
context:
space:
mode:
Diffstat (limited to 'files/js/files.js')
-rw-r--r--files/js/files.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/js/files.js b/files/js/files.js
index c758432a4f6..2e95a7881ef 100644
--- a/files/js/files.js
+++ b/files/js/files.js
@@ -14,13 +14,13 @@ $(document).ready(function() {
);
// Sets the file-action buttons behaviour :
- $('td.fileaction a').live('click',function() {
+ $('td.fileaction a').live('click',function(event) {
event.preventDefault();
FileActions.display($(this).parent());
});
// Sets the file link behaviour :
- $('td.filename a').live('click',function() {
+ $('td.filename a').live('click',function(event) {
event.preventDefault();
var filename=$(this).text();
var mime=$(this).parent().parent().attr('data-mime');