Skip to content
Snippets Groups Projects
Commit 22c72aed authored by JediKev's avatar JediKev
Browse files

issue: Scrollable Quickfilters

This addresses an issue where having more than 30+ choices for a Quickfilter
makes the dropdown run off the page causing some choices to be hidden. This
makes it to where if you have more than 20+ choices we will make the
dropdown a fixed height and make it scrollable.
parent 47318a1a
Branches
Tags
No related merge requests found
...@@ -36,7 +36,7 @@ $.pjax({ ...@@ -36,7 +36,7 @@ $.pjax({
url: '?' + query, url: '?' + query,
timeout: 2000, timeout: 2000,
container: '#pjax-container'});"> container: '#pjax-container'});">
<ul> <ul <?php if (count($choices) > 20) echo 'style="height:500px;overflow-x:hidden;overflow-y:scroll;"'; ?>>
<?php foreach ($choices as $k=>$desc) { <?php foreach ($choices as $k=>$desc) {
$selected = isset($quick_filter) && $quick_filter == $k; $selected = isset($quick_filter) && $quick_filter == $k;
?> ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment