fix fileactions following the link instead
This commit is contained in:
parent
4b9665a952
commit
cde38eb00a
|
@ -53,7 +53,7 @@ FileActions={
|
||||||
var html='<li><a href="" alt="'+name+'">'+name+'</a></li>';
|
var html='<li><a href="" alt="'+name+'">'+name+'</a></li>';
|
||||||
var element=$(html);
|
var element=$(html);
|
||||||
element.data('action',name);
|
element.data('action',name);
|
||||||
element.click(function(){
|
element.click(function(event){
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
actions[$(this).data('action')](FileActions.getCurrentFile());
|
actions[$(this).data('action')](FileActions.getCurrentFile());
|
||||||
});
|
});
|
||||||
|
|
|
@ -14,13 +14,13 @@ $(document).ready(function() {
|
||||||
);
|
);
|
||||||
|
|
||||||
// Sets the file-action buttons behaviour :
|
// Sets the file-action buttons behaviour :
|
||||||
$('td.fileaction a').live('click',function() {
|
$('td.fileaction a').live('click',function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
FileActions.display($(this).parent());
|
FileActions.display($(this).parent());
|
||||||
});
|
});
|
||||||
|
|
||||||
// Sets the file link behaviour :
|
// Sets the file link behaviour :
|
||||||
$('td.filename a').live('click',function() {
|
$('td.filename a').live('click',function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
var filename=$(this).text();
|
var filename=$(this).text();
|
||||||
var mime=$(this).parent().parent().attr('data-mime');
|
var mime=$(this).parent().parent().attr('data-mime');
|
||||||
|
|
Loading…
Reference in New Issue