From 48fb1e2dae3d6c91b5c9bded455b38eb7c4c4df0 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Sat, 30 Jul 2011 12:14:09 +0200 Subject: [PATCH] hide empty folder notification when a folder or file got uploaded --- files/js/files.js | 4 +++- files/templates/part.list.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/files/js/files.js b/files/js/files.js index be7e48aeee..d3f91fe9a2 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -69,6 +69,7 @@ $(document).ready(function() { $('#file_newfolder_name').blur(); });} }); + $('#emptyfolder').remove(); }); $('#file_newfolder_name').click(function(){ @@ -181,6 +182,7 @@ $(document).ready(function() { clone.insertBefore(form); form.hide(); } + $('#emptyfolder').remove(); }); //add multiply file upload attribute to all browsers except konqueror (which crashes when it's used) @@ -433,4 +435,4 @@ function getMimeIcon(mime){ mime='file'; } return OC.imagePath('core','mimetypes/'+mime+'.png'); -} \ No newline at end of file +} diff --git a/files/templates/part.list.php b/files/templates/part.list.php index 3713d483b0..4058666432 100644 --- a/files/templates/part.list.php +++ b/files/templates/part.list.php @@ -1,4 +1,4 @@ - Nothing in here. Upload something!'; + Nothing in here. Upload something!'; foreach($_['files'] as $file): $simple_file_size = simple_file_size($file['size']); $simple_size_color = 200-intval($file['size']/(1024*1024)*2); // the bigger the file, the darker the shade of grey