Fix toggle of version changes in all pages of datatable

This commit is contained in:
Stella Rouzi 2018-04-07 16:24:05 +03:00
parent d7b3029383
commit cf251515f4
2 changed files with 8 additions and 5 deletions

View file

@ -6,9 +6,4 @@ $(function () {
pagingType: 'full_numbers',
"lengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]],
});
$('#versionstable').DataTable({
pagingType: 'full_numbers',
order: [[ 0, 'desc' ]]
});
});

View file

@ -69,3 +69,11 @@
%td.col-md-2
= render partial: 'shared/changelog_actions', locals: { version: version }
:javascript
$(document).ready(function(){
$('#versionstable').DataTable({
pagingType: 'full_numbers',
order: [[ 0, 'desc' ]]
});
});