]> source.dussan.org Git - nextcloud-server.git/commitdiff
hide empty folder notification when a folder or file got uploaded
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Sat, 30 Jul 2011 10:14:09 +0000 (12:14 +0200)
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Sat, 30 Jul 2011 10:14:09 +0000 (12:14 +0200)
files/js/files.js
files/templates/part.list.php

index be7e48aeeeb29b8da1c21cb31b47228fd4dbb1ff..d3f91fe9a2f3b94beb627f2ecb9c127379e64c2f 100644 (file)
@@ -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
+}
index 3713d483b001595e23e0933989ffd974e4210a7d..40586664328ffa6a3e0fe3233f5440de3cb1ef2c 100644 (file)
@@ -1,4 +1,4 @@
-               <?php if(!$_['files']) echo '<span id="emptyfolder">Nothing in here. Upload something!</span><style>.file_upload_filename { background-color:#ffc100; border:#dda600 1px solid; }</style>';
+               <?php if(!$_['files']) echo '<span id="emptyfolder">Nothing in here. Upload something!<style>.file_upload_filename { background-color:#ffc100; border:#dda600 1px solid; }</style></span>';
                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