]> source.dussan.org Git - nextcloud-server.git/commit
Added FileList.setViewerMode to hide controls
authorVincent Petry <pvince81@owncloud.com>
Tue, 15 Oct 2013 15:59:59 +0000 (17:59 +0200)
committerVincent Petry <pvince81@owncloud.com>
Tue, 22 Oct 2013 14:44:57 +0000 (16:44 +0200)
commit263f8bebfeb6be30a5dc327689dd1c1739f492e5
treee6aa6447cb191cc05c2c7f322c98253e8e2e7e2d
parentcadd71ec8a02fc5619a9347109f9e588e13b3e3b
Added FileList.setViewerMode to hide controls

Some files app embed themselves under the controls (like the text
editor). The new method FileList.setViewerMode() makes it possible to
properly show/hide the control buttons using the correct permissions.

Apps using this approach must call setViewerMode(true) when starting and
setViewerMode(false) upon closing to restore the controls.

This is needed for #5284
apps/files/js/filelist.js