Skip to content

Commit

Permalink
Merge pull request #12385 from nextcloud/fix/12356/grid-toggle-fix
Browse files Browse the repository at this point in the history
Fixes the grid toggle for none folder shares
  • Loading branch information
MorrisJobke authored Nov 11, 2018
2 parents 6dc2b03 + 04b9154 commit bbd51f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_sharing/templates/public.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</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') ?>"
Expand Down

0 comments on commit bbd51f4

Please sign in to comment.