Fixed #27714 -- Fixed small visual artifact when clicking inline edit button in admin.

This commit is contained in:
Anton Samarchyan 2017-01-10 11:24:28 -05:00 committed by Tim Graham
parent 991cd69621
commit 95f434e2b9
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@
<div class="related-widget-wrapper">
{{ widget }}
{% block links %}
{% spaceless %}
{% if can_change_related %}
<a class="related-widget-wrapper-link change-related" id="change_id_{{ name }}"
data-href-template="{{ change_related_template_url }}?{{ url_params }}"
@ -23,5 +24,6 @@
<img src="{% static 'admin/img/icon-deletelink.svg' %}" alt="{% trans 'Delete' %}"/>
</a>
{% endif %}
{% endspaceless %}
{% endblock %}
</div>

View File

@ -2,6 +2,7 @@
<div class="related-widget-wrapper">
{% include widget.template_name %}
{% block links %}
{% spaceless %}
{% if can_change_related %}
<a class="related-widget-wrapper-link change-related" id="change_id_{{ widget.name }}"
data-href-template="{{ change_related_template_url }}?{{ url_params }}"
@ -23,5 +24,6 @@
<img src="{% static 'admin/img/icon-deletelink.svg' %}" alt="{% trans 'Delete' %}"/>
</a>
{% endif %}
{% endspaceless %}
{% endblock %}
</div>