Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model_list.results_bottom.actions.html #414

Closed
200p opened this issue Jun 28, 2017 · 0 comments
Closed

model_list.results_bottom.actions.html #414

200p opened this issue Jun 28, 2017 · 0 comments

Comments

@200p
Copy link

200p commented Jun 28, 2017

问题:actions_selection_counter=False,列表全选会有问题
错误:_actions_icnt 未定义
修改如下:
{% if actions_selection_counter %}
{% if cl.result_count != cl.result_list|length %}
<a class="question btn btn-default" href="javascript:;" style="display: none;" title="{% trans "Click here to select the objects across all pages" %}">{% blocktrans with cl.result_count as total_count %}Select all {{ total_count }} {{ model_name }}{% endblocktrans %}
{% trans "Clear selection" %}
{% endif %}
{% endif %}
<script type="text/javascript">var _actions_icnt="{{ cl.result_list|length|default:"0" }}";</script>

wgbbiao added a commit that referenced this issue Jun 29, 2017
@wgbbiao wgbbiao closed this as completed Jun 29, 2017
CreateJGN added a commit to CreateJGN/xadmin-Django-React that referenced this issue Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants