]> git.agnieray.net Git - galette.git/commitdiff
Don't replace legend link with check links when empty
authorGuillaume AGNIERAY <dev@agnieray.net>
Thu, 5 Oct 2023 14:35:15 +0000 (16:35 +0200)
committerJohan Cwiklinski <trasher@x-tnd.be>
Fri, 6 Oct 2023 08:21:48 +0000 (10:21 +0200)
galette/templates/default/elements/list.html.twig

index 9f7efb44becd2cf0be2c9d5799bc2dc5691951c6..7af0b7206276669ef4ff8cc8f1e805221c9b5818 100644 (file)
             {% endif %}
                     }
                 });
-                $('.batch-selection').after({% if _legend_block is not empty %}_legendlink{% else %}_checklinks{% endif %});
+            {% if _legend_block is not empty %}
+                $('.batch-selection').after(_legendlink);
+            {% endif %}
                 _bind_check('entries_sel');
         {% endif %}
             }