Skip to content

Commit

Permalink
Disable paging of repos in release detail
Browse files Browse the repository at this point in the history
The paging on that page is not useful in any way. It was previously
disabled through data attributes, but since test server is using an
outdated version of PatternFly and therefore DataTables, this patch
explicitly disables the paging with JavaScript.

JIRA: PDC-978
  • Loading branch information
lubomir committed Sep 8, 2015
1 parent 667816c commit f29c18d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pdc/apps/release/templates/release_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h3 class="sub-header">{% trans 'Variants' %}</h3>
</table>

<h3 class="sub-header">{% trans 'Repositories' %}</h3>
<table class="datatable table table-striped table-bordered" data-paging="false">
<table id="repos" class="table table-striped table-bordered">
<thead>
<tr>
<th class="text-right">#</th>
Expand Down Expand Up @@ -109,4 +109,12 @@ <h3 class="sub-header">{% trans 'Repositories' %}</h3>
</tbody>
</table>

<script type="text/javascript">
$(document).ready(function () {
$("#repos").dataTable({
"paging": false
});
});
</script>

{% endblock %}

0 comments on commit f29c18d

Please sign in to comment.