diff --git a/view/theme/frio/js/module/admin/logs/view.js b/view/theme/frio/js/module/admin/logs/view.js index 245518822f..9faf9ec890 100644 --- a/view/theme/frio/js/module/admin/logs/view.js +++ b/view/theme/frio/js/module/admin/logs/view.js @@ -64,10 +64,16 @@ $(function(){ }); var elm = $modal.find(".event-data")[0]; + const event_data_header = $modal.find(".event-data-header")[0]; + + // Cleanup event data + event_data_header.hidden = true; elm.innerHTML = ""; + + // Fill out event data var data = element.dataset.data; if (data !== "") { - elm.innerHTML = "

Data

"; + event_data_header.hidden = false; data = JSON.parse(data); elm.innerHTML += recursive_details("", data); } diff --git a/view/theme/frio/templates/admin/logs/view.tpl b/view/theme/frio/templates/admin/logs/view.tpl index d47c0361de..d5ad41f217 100644 --- a/view/theme/frio/templates/admin/logs/view.tpl +++ b/view/theme/frio/templates/admin/logs/view.tpl @@ -121,7 +121,7 @@ - +

{{$l10n.Data}}