Merge pull request #12385 from nextcloud/fix/12356/grid-toggle-fix

Fixes the grid toggle for none folder shares
This commit is contained in:
Morris Jobke 2018-11-11 23:30:14 +01:00 committed by GitHub
commit bbd51f4ddb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
</div>
<?php endif; ?>
<?php if (!$_['isIE']) { ?>
<?php if ($_['showgridview'] && empty($_['dir']) === false) { ?>
<input type="checkbox" class="hidden-visually" id="showgridview"
<?php if($_['showgridview']) { ?>checked="checked" <?php } ?>/>
<label id="view-toggle" for="showgridview" class="button <?php p($_['showgridview'] ? 'icon-toggle-filelist' : 'icon-toggle-pictures') ?>"