Skip to content
Snippets Groups Projects
Commit ea962911 authored by Carlos Vega's avatar Carlos Vega
Browse files

new type of select for none, true, false, inconclusive

parent 17adf6a7
No related branches found
No related tags found
1 merge request!250Virus visit column changes
......@@ -301,11 +301,23 @@ function createTable(params) {
$(this).html('<select style="width:60px" ><option value selected="selected">---</option><option value="true">YES</option><option value="false">NO</option></select>');
});
$(tableElement).find('tfoot div[name="yes_no_null_filter"]').each(function () {
$(this).html('<select style="width:120px" ><option value selected="selected">---</option><option value="true">YES</option><option value="false">NO</option><option value="null">N/A</option></select>');
$(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></select>');
});
$(tableElement).find('tfoot div[name="yes_no_null_inconclusive_filter"]').each(function () {
$(this).html('<select style="width:120px" ><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>');
$(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>');
});
$(tableElement).find('tfoot div[name="virus_test_date"]').each(function () {
$(this).css('width', '100px');
$(this).text('');
});
$(tableElement).find('th:contains("RT-PCR")').each(function(){
non_breaking_hyphen = $.parseHTML('&#8209;');
var text = $(this).text().replace('-', $(non_breaking_hyphen).text());
$(this).text(text);
});
$(tableElement).find('tfoot div[name="integer_filter"]').each(function () {
var options = '<option value selected="selected">---</option>';
for (var i = 1; i <= 8; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment