]> source.dussan.org Git - nextcloud-server.git/commitdiff
Corretly hide "no permissions" message in controls in viewer mode
authorVincent Petry <pvince81@owncloud.com>
Thu, 31 Oct 2013 11:31:40 +0000 (12:31 +0100)
committerVincent Petry <pvince81@owncloud.com>
Thu, 31 Oct 2013 11:34:15 +0000 (12:34 +0100)
Fixes #5622

apps/files/js/filelist.js

index 02dfa16a22435f50ca016569058903e8ee4af489..e935ce7d5d34ce9691b28981c7a67e8190c7a788 100644 (file)
@@ -264,6 +264,9 @@ var FileList={
                        $('.creatable').toggleClass('hidden', !isCreatable);
                        $('.notCreatable').toggleClass('hidden', isCreatable);
                }
+               else{
+                       $('.creatable, .notCreatable').addClass('hidden');
+               }
        },
        /**
         * Enables/disables viewer mode.