diff options
author | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-13 05:27:50 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-08-13 05:27:50 +0200 |
commit | 7ece8ed31439df9b321ff1800483079a6a7dcfac (patch) | |
tree | e31ccc1e5a1f6046cdc7821b50c2abbdd32d4752 /files/js | |
parent | b2768637d2748a1d55ee98a9809c66e135a4190a (diff) | |
download | nextcloud-server-7ece8ed31439df9b321ff1800483079a6a7dcfac.tar.gz nextcloud-server-7ece8ed31439df9b321ff1800483079a6a7dcfac.zip |
added global action class for icons
Diffstat (limited to 'files/js')
-rw-r--r-- | files/js/fileactions.js | 12 |
1 files changed, 6 insertions, 6 deletions
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='<a href="#" title="'+name+'" class="file_action"/>'; + var html='<a href="#" title="'+name+'" class="action" />'; var element=$(html); if(img){ element.append($('<img src="'+img+'"/>')); @@ -85,7 +85,7 @@ FileActions={ } if(actions['Delete']){ var img=FileActions.icons['Delete']; - var html='<a href="#" title="Delete" class="file_action"/>'; + var html='<a href="#" title="Delete" class="action" />'; var element=$(html); if(img){ element.append($('<img src="'+img+'"/>')); @@ -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(); }); }, |