From fb22bb68b2b7d23500fa11239e33759bfbc7e60a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr> Date: Sun, 28 Jan 2018 21:52:54 +0100 Subject: [PATCH] fix "display all" behaviour in multiselection list menu. Former-commit-id: 59caf23a04768e8f6d44bf025eda40fc01e22c71 --- ippisite/ippidb/templates/multiselection_list_menu.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ippisite/ippidb/templates/multiselection_list_menu.html b/ippisite/ippidb/templates/multiselection_list_menu.html index 6e4cdb26..edcad43c 100644 --- a/ippisite/ippidb/templates/multiselection_list_menu.html +++ b/ippisite/ippidb/templates/multiselection_list_menu.html @@ -3,10 +3,10 @@ <legend>{{ label }} {% if not all_param_value %} <a href="#" class="float-right text-light" title="Display all {{ label }}s" onclick="modifyUrl('{{ all_param_name }}',true);">[+]</a> - <input type="hidden" name="{{ all_param_name }}" value="{{ all_param_value }}" /> {% endif %} - {% if all_param_value %} + {% if all_param_value == "true" %} <a href="#" class="float-right text-light" title="Show only top 5 {{ label }}s" onclick="modifyUrl('{{ all_param_name }}',null);">[-]</a> + <input type="hidden" name="{{ all_param_name }}" value="{{ all_param_value }}" /> {% endif %} </legend> </div> -- GitLab