Skip to content
Snippets Groups Projects
Commit cde38eb0 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix fileactions following the link instead

parent 4b9665a9
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ FileActions={
var html='<li><a href="" alt="'+name+'">'+name+'</a></li>';
var element=$(html);
element.data('action',name);
element.click(function(){
element.click(function(event){
event.preventDefault();
actions[$(this).data('action')](FileActions.getCurrentFile());
});
......
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment