do not show default file action in the file action list on hover
This commit is contained in:
parent
556bf2ef4d
commit
7d5bc7974d
1 changed files with 15 additions and 12 deletions
|
@ -52,7 +52,9 @@ FileActions={
|
|||
$('#file_menu').empty();
|
||||
parent.append($('#file_menu'));
|
||||
var actions=FileActions.get(FileActions.getCurrentMimeType(),FileActions.getCurrentType());
|
||||
var defaultAction=FileActions.getDefault(FileActions.getCurrentMimeType(),FileActions.getCurrentType());
|
||||
for(name in actions){
|
||||
if(actions[name]!=defaultAction){
|
||||
var html='<a href="#" alt="'+name+'">'+name+'</a>';
|
||||
var element=$(html);
|
||||
element.data('action',name);
|
||||
|
@ -66,6 +68,7 @@ FileActions={
|
|||
});
|
||||
$('#file_menu').append(element);
|
||||
}
|
||||
}
|
||||
$('#file_menu').show();
|
||||
return false;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue