diff options
Diffstat (limited to 'files')
-rw-r--r-- | files/css/files.css | 1 | ||||
-rw-r--r-- | files/js/fileactions.js | 12 |
2 files changed, 9 insertions, 4 deletions
diff --git a/files/css/files.css b/files/css/files.css index b384fef0b78..6c4d603b4a6 100644 --- a/files/css/files.css +++ b/files/css/files.css @@ -70,6 +70,7 @@ table thead.fixed { height:2em; } #select_all { float:left; margin:.3em 0.6em 0 .5em; } #uploadsize-message,#delete-confirm { display:none; } .selectedActions a,#fileList a.action { float:right; display:inline; margin:0 .5em; padding:.3em .3em 0 .3em !important; } +a.action>img{ max-height:16px; max-width:16px; } .selectedActions { display:none; } /* add breadcrumb divider to the File item in navigation panel */ diff --git a/files/js/fileactions.js b/files/js/fileactions.js index 6f0729e43b6..b5dd3982803 100644 --- a/files/js/fileactions.js +++ b/files/js/fileactions.js @@ -66,7 +66,7 @@ FileActions={ if(img.call){ img=img(file); } - var html='<a href="#" title="'+name+'" class="action" />'; + var html='<a href="#" title="'+name+'" class="action" style="display:none" />'; var element=$(html); if(img){ element.append($('<img src="'+img+'"/>')); @@ -80,6 +80,7 @@ FileActions={ FileActions.hide(); action(currentFile); }); + element.hide(); parent.children('a.name').append(element); } } @@ -88,7 +89,7 @@ FileActions={ if(img.call){ img=img(file); } - var html='<a href="#" title="Delete" class="action" />'; + var html='<a href="#" title="Delete" class="action" style="display:none" />'; var element=$(html); if(img){ element.append($('<img src="'+img+'"/>')); @@ -102,10 +103,13 @@ FileActions={ FileActions.hide(); action(currentFile); }); + element.hide(); parent.parent().children().last().append(element); } - $('#fileList .action').hide(); - $('#fileList .action').fadeIn(200); + $('#fileList .action').css('-o-transition-property','none');//temporarly disable + $('#fileList .action').fadeIn(200,function(){ + $('#fileList .action').css('-o-transition-property','opacity'); + }); return false; }, hide:function(){ |