Fix history table modal loading

This commit is contained in:
JonnyWong16 2021-03-28 18:52:41 -07:00
commit 8928a3c901
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -46,8 +46,9 @@
<script src="${http_root}js/tables/history_table.js${cache_param}"></script>
<script>
$(document).ready(function() {
$('#date-header').html(moment('${data["start_date"]}','YYYY-MM-DD').format('ddd MMM Do YYYY'));
$('#date-header').html(moment('${data["start_date"]}','YYYY-MM-DD').format('ddd MMM Do YYYY'));
$('#history-modal').off('shown.bs.modal').on('shown.bs.modal', function() {
history_table_options.ajax = {
url: 'get_history',
data: function ( d ) {
@ -65,10 +66,6 @@
history_table.columns([0, 3, 4, 5, 9, 11, 12]).visible(false);
clearSearchButton('history_table_modal', history_table);
$('#history-modal').on('shown.bs.modal', function() {
history_table.columns.adjust().draw();
});
});
</script>
% else: