From 331213d96e5df138116a30ac8a5993babf3eaf46 Mon Sep 17 00:00:00 2001 From: Carlos Vega <carlos.vega@uni.lu> Date: Tue, 21 Apr 2020 18:01:21 +0200 Subject: [PATCH] addewd comments --- smash/web/static/js/smash.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smash/web/static/js/smash.js b/smash/web/static/js/smash.js index 61e9549e..08d14d24 100644 --- a/smash/web/static/js/smash.js +++ b/smash/web/static/js/smash.js @@ -307,11 +307,13 @@ function createTable(params) { $(this).html('<select style="width:100px" ><option value selected="selected">---</option><option value="true">YES</option><option value="false">NO</option><option value="null">N/A</option><option value="inconclusive">Inconclusive</option></select>'); }); + //make columns of virus test date wider $(tableElement).find('tfoot div[name="virus_test_date"]').each(function () { $(this).css('width', '100px'); $(this).text(''); }); + //replace the hyphen with non breaking space hyphen to ensure the column names are more readable $(tableElement).find('th:contains("RT-PCR")').each(function(){ non_breaking_hyphen = $.parseHTML('‑'); var text = $(this).text().replace('-', $(non_breaking_hyphen).text()); -- GitLab