From a3145e2aaba00647990b4883a07b286baeee7409 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Tue, 5 Dec 2017 16:46:09 +0100 Subject: [PATCH] filtering by visit number added --- smash/web/static/js/smash.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/smash/web/static/js/smash.js b/smash/web/static/js/smash.js index 51626488..d7f8fe07 100644 --- a/smash/web/static/js/smash.js +++ b/smash/web/static/js/smash.js @@ -227,6 +227,13 @@ function createTable(params) { $(tableElement).find('tfoot div[name="yes_no_filter"]').each(function () { $(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="integer_filter"]').each(function () { + var options = '<option value selected="selected">---</option>'; + for (var i = 1; i <= 8; i++) { + options += '<option value="' + i + '">' + i + '</option>'; + } + $(this).html('<select style="width:60px" >' + options + '</select>'); + }); $(tableElement).find('tfoot div[name="visit_filter"]').each(function () { $(this).html('<select style="width:60px" >' + -- GitLab