From e9946be194c4784a7c586941727c68d1b4b095d7 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 28 2019 10:24:28 +0000 Subject: Fix the toggle button We had two issues, the JS function toggle() was in if/else statements which means it wasn't always included and thus not always working. The second issue was a missing '.', the line: checkboxes[i].checked = !checkboxes[i]checked; was meant to be: checkboxes[i].checked = !checkboxes[i].checked; Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/add_token.html b/pagure/templates/add_token.html index 4b3f83d..756ad7b 100644 --- a/pagure/templates/add_token.html +++ b/pagure/templates/add_token.html @@ -36,14 +36,7 @@ {{ render_bootstrap_field( form.description, field_description="Small description of this API token") }}
- + {% for acl in acls %}
+ + {% endmacro %}