Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixes
axel committed Mar 25, 2021
1 parent 7e19b58 commit 09bbe1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions View/Elements/pagination.ctp
@@ -124,14 +124,14 @@ $includeGoto = isset($goto) ? $goto : true;
<select name="pageLimit" id="pageLimit">
<option value="20">20</option>
<option value="50">50</option>
<option value="all">all</option>
<option value="<?php echo $this->Paginator->params()['count'] ?>">All</option>
</select>
<p class=""><?php print _txt('fd.page.limit.records'); ?></p>
<input type="submit" value="<?php print _txt('op.go'); ?>" class="btn btn-primary-light" />
<script type="text/javascript">
$(function() {
// Check if the currentLimit holds an appropriate value on first load, and set the select option
if (currentLimit != '' && (currentLimit == '2' || currentLimit == '4' || currentLimit == '6')) {
if (currentLimit != '' && (currentLimit == '20' || currentLimit == '50' || currentLimit == '<?php echo $this->Paginator->params()['count'] ?>')) {
$("#pageLimit").val(currentLimit);
}
});

0 comments on commit 09bbe1a

Please sign in to comment.