From 7ece8ed31439df9b321ff1800483079a6a7dcfac Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Sat, 13 Aug 2011 05:27:50 +0200 Subject: added global action class for icons --- files/js/fileactions.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'files/js') diff --git a/files/js/fileactions.js b/files/js/fileactions.js index 2bc79abe723..a0a04ff1662 100644 --- a/files/js/fileactions.js +++ b/files/js/fileactions.js @@ -53,7 +53,7 @@ FileActions={ }, display:function(parent){ FileActions.currentFile=parent; - $('.file_action').remove(); + $('.action').remove(); var actions=FileActions.get(FileActions.getCurrentMimeType(),FileActions.getCurrentType()); var file=FileActions.getCurrentFile(); if($('tr[data-file="'+file+'"]').data('renaming')){ @@ -66,7 +66,7 @@ FileActions={ if(img.call){ img=img(file); } - var html=''; + var html=''; var element=$(html); if(img){ element.append($('')); @@ -85,7 +85,7 @@ FileActions={ } if(actions['Delete']){ var img=FileActions.icons['Delete']; - var html=''; + var html=''; var element=$(html); if(img){ element.append($('')); @@ -101,12 +101,12 @@ FileActions={ }); parent.parent().children().last().append(element); } - $('.file_action').hide(); - $('.file_action').fadeIn(200); + $('.action').hide(); + $('.action').fadeIn(200); return false; }, hide:function(){ - $('.file_action').fadeOut(200,function(){ + $('.action').fadeOut(200,function(){ $(this).remove(); }); }, -- cgit v1.2.3