aboutsummaryrefslogtreecommitdiffstats
path: root/files/js/fileactions.js
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-12 22:10:43 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-08-13 00:23:15 +0200
commit42c5a24dc3f67bde57c8d4180e71abb1b1aefe70 (patch)
tree1ba8f3219bf87cb6144907e2483ebf9b6f80cc7d /files/js/fileactions.js
parentc2a5b4983404685f2707ed7f31deae0088de12d7 (diff)
downloadnextcloud-server-42c5a24dc3f67bde57c8d4180e71abb1b1aefe70.tar.gz
nextcloud-server-42c5a24dc3f67bde57c8d4180e71abb1b1aefe70.zip
more fancy fading
Diffstat (limited to 'files/js/fileactions.js')
-rw-r--r--files/js/fileactions.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/files/js/fileactions.js b/files/js/fileactions.js
index 1ba265142be..2bc79abe723 100644
--- a/files/js/fileactions.js
+++ b/files/js/fileactions.js
@@ -53,6 +53,7 @@ FileActions={
},
display:function(parent){
FileActions.currentFile=parent;
+ $('.file_action').remove();
var actions=FileActions.get(FileActions.getCurrentMimeType(),FileActions.getCurrentType());
var file=FileActions.getCurrentFile();
if($('tr[data-file="'+file+'"]').data('renaming')){
@@ -100,10 +101,14 @@ FileActions={
});
parent.parent().children().last().append(element);
}
+ $('.file_action').hide();
+ $('.file_action').fadeIn(200);
return false;
},
hide:function(){
- $('.file_action').remove();
+ $('.file_action').fadeOut(200,function(){
+ $(this).remove();
+ });
},
getCurrentFile:function(){
return FileActions.currentFile.parent().attr('data-file');