Permalink
Browse files

Added check to make sure the js doesn't crash when there's no trade h…

…istory
  • Loading branch information...
devvion authored and suprnurd committed Nov 27, 2017
1 parent 14f091a commit f6e3cc63eebfa73efd4ac97d3a824ce41f47ec92
Showing with 7 additions and 5 deletions.
  1. +7 −5 views/layout.jade
View
@@ -42,11 +42,13 @@ html
animation: true,
delay: { hide: 500 },
});
$('.history-table').dataTable( {
searching: false,
ordering: false,
responsive: true
});
if($('.history-table tbody tr').length) {
$('.history-table').dataTable( {
searching: false,
ordering: false,
responsive: true
});
}
$('.iquidus').css('color',$('.table').css('color'));
$(window).resize(function () {
$($.fn.dataTable.tables( true ) ).DataTable().columns.adjust();

0 comments on commit f6e3cc6

Please sign in to comment.