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

@ -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' ]]
});
});