From 1ffb09b38a9521e5421362a895c777fc0468ce38 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Sun, 17 Apr 2011 19:00:22 +0200 Subject: [PATCH] nicely slide in and out file action elements --- files/js/files.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/files/js/files.js b/files/js/files.js index 313727cedbc..5c11bddeb56 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -55,11 +55,11 @@ $(document).ready(function() { if($('#file_action_panel').attr('activeAction') != 'upload') { $('#file_action_panel').attr('activeAction', 'upload'); $('#fileSelector').replaceWith(''); - $('#file_action_panel form').css({"display":"none"}); - $('#file_upload_form').css({"display":"block"}); + $('#file_action_panel form').slideUp(250); + $('#file_upload_form').slideDown(250); } else { $('#file_action_panel').attr('activeAction', 'false'); - $('#file_upload_form').css({"display":"none"}) + $('#file_upload_form').slideUp(250); } return false; }); @@ -68,10 +68,10 @@ $(document).ready(function() { if($('#file_action_panel').attr('activeAction') != 'new-dir') { $('#file_action_panel').attr('activeAction', 'new-dir'); $('#file_new_dir_name').val(''); - $('#file_action_panel form').css({"display":"none"}); - $('#file_newfolder_form').css({"display":"block"}) + $('#file_action_panel form').slideUp(250); + $('#file_newfolder_form').slideDown(250); } else { - $('#file_newfolder_form').css({"display":"none"}) + $('#file_newfolder_form').slideUp(250); $('#file_action_panel').attr('activeAction', false); } return false;