summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-10-31 12:31:40 +0100
committerVincent Petry <pvince81@owncloud.com>2013-10-31 12:34:15 +0100
commit1be1c57bc8e65c6a83f087c217893712c2a61838 (patch)
treee102a209229a5baf5d7729564ccd0f25fb0fa84b /apps
parent8f50d7680b0cb280a545685d26873a6c3d428aa3 (diff)
downloadnextcloud-server-1be1c57bc8e65c6a83f087c217893712c2a61838.tar.gz
nextcloud-server-1be1c57bc8e65c6a83f087c217893712c2a61838.zip
Corretly hide "no permissions" message in controls in viewer mode
Fixes #5622
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js3
1 files changed, 3 insertions, 0 deletions
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.