Skip to content

Commit

Permalink
Changing DataTables to default to show all and sort by database
Browse files Browse the repository at this point in the history
  • Loading branch information
michellethomas committed Dec 17, 2015
1 parent 6bbcbe5 commit 6f948f0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion panoramix/templates/panoramix/featured_datasets.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@
<script src="https://cdn.datatables.net/1.10.10/js/jquery.dataTables.min.js"></script>
<script>
$(document).ready(function() {
$('#dataset-table').DataTable();
$('#dataset-table').DataTable({
aLengthMenu: [
[25, 50, 100, 200, -1],
[25, 50, 100, 200, "All"]
],
iDisplayLength: -1,
"order": [[ 1, "asc" ]]
});
} );
</script>
{% endblock %}

0 comments on commit 6f948f0

Please sign in to comment.