From: Vincent Petry Date: Thu, 31 Oct 2013 11:31:40 +0000 (+0100) Subject: Corretly hide "no permissions" message in controls in viewer mode X-Git-Tag: v6.0.0beta3~30^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1be1c57bc8e65c6a83f087c217893712c2a61838;p=nextcloud-server.git Corretly hide "no permissions" message in controls in viewer mode Fixes #5622 --- diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 02dfa16a224..e935ce7d5d3 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -264,6 +264,9 @@ var FileList={ $('.creatable').toggleClass('hidden', !isCreatable); $('.notCreatable').toggleClass('hidden', isCreatable); } + else{ + $('.creatable, .notCreatable').addClass('hidden'); + } }, /** * Enables/disables viewer mode.