Skip to content

Commit 7c7de5f

Browse files
authored
Fix Error Log not showing
1 parent 2f93979 commit 7c7de5f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

intelmq_manager/static/js/monitor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function redraw_logs() {
6666
let has_button = false;
6767

6868
if (log_row.extended_message) {
69-
buttons_cell = `<button type="submit" class="btn btn-default btn-xs" data-toggle="modal" data-target="#extended-message-modal" id="button-extended-message-${index}"><span class="glyphicon glyphicon-plus"></span></button>`;
69+
var buttons_cell = `<button type="submit" class="btn btn-default btn-xs" data-toggle="modal" data-target="#extended-message-modal" id="button-extended-message-${index}"><span class="glyphicon glyphicon-plus"></span></button>`;
7070
has_button = true;
7171
log_row.actions = buttons_cell;
7272
} else if (log_row.message.length > MESSAGE_LENGTH) {
@@ -84,7 +84,7 @@ function redraw_logs() {
8484

8585
$('#log-table').dataTable().fnAddData(log_row);
8686
if (has_button) {
87-
extended_message_func = message_index => show_extended_message(message_index);
87+
var extended_message_func = message_index => show_extended_message(message_index);
8888
document.getElementById(`button-extended-message-${index}`).addEventListener('click', function (index) {
8989
return function () {
9090
extended_message_func(index)

0 commit comments

Comments
 (0)