diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-04-15 13:25:31 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-04-15 13:25:31 +0200 |
commit | b669c846b097b6f16d99191fb2ecfe0a408ea589 (patch) | |
tree | 2724fb72ac73a28e31a44b4dbc808073945cb927 | |
parent | a6a8e2c553bd2ba82c3d50f147a49793ed62b6f5 (diff) | |
download | nextcloud-server-b669c846b097b6f16d99191fb2ecfe0a408ea589.tar.gz nextcloud-server-b669c846b097b6f16d99191fb2ecfe0a408ea589.zip |
add span around fileactions
-rw-r--r-- | files/js/fileactions.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/files/js/fileactions.js b/files/js/fileactions.js index 60c4fadedd0..93b0d97336e 100644 --- a/files/js/fileactions.js +++ b/files/js/fileactions.js @@ -59,6 +59,7 @@ FileActions={ if($('tr').filterAttr('data-file',file).data('renaming')){ return; } + parent.children('a.name').append('<span class="fileactions" />'); var defaultAction=FileActions.getDefault(FileActions.getCurrentMimeType(),FileActions.getCurrentType()); for(name in actions){ if((name=='Download' || actions[name]!=defaultAction) && name!='Delete'){ @@ -81,7 +82,7 @@ FileActions={ action(currentFile); }); element.hide(); - parent.children('a.name').append(element); + parent.find('a.name>span.fileactions').append(element); } } if(actions['Delete']){ @@ -113,7 +114,7 @@ FileActions={ return false; }, hide:function(){ - $('#fileList .action').fadeOut(200,function(){ + $('#fileList span.fileactions').fadeOut(200,function(){ $(this).remove(); }); }, |