Skip to content

Commit

Permalink
Fix selected count (#3865)
Browse files Browse the repository at this point in the history
* Fix selected count for actions

* Add default
  • Loading branch information
matyldv authored Nov 18, 2024
1 parent 06abac1 commit a0be4ba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ralph/admin/templates/admin/actions.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ <h4>{% trans "Actions" %}</h4>
{% trans "Go" %}
</button>
{% if actions_selection_counter %}
<script type="text/javascript">
var _actions_icnt="{{ cl.result_list|length|default:"0" }}";
</script>
<span class="action-counter">{{ selection_note }}</span>
<span class="action-counter" data-actions-icnt="{{ cl.result_list|length|default:"0" }}">{{ selection_note }}</span>
{% endif %}
</div>
{% endif %}

0 comments on commit a0be4ba

Please sign in to comment.