Skip to content

Commit

Permalink
fix: link with class related-widget-wrapper-link should pop up (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Yu <[email protected]>
  • Loading branch information
joshyu and Josh Yu authored May 31, 2024
1 parent b5273d1 commit a18d7a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Changelog

unreleased
==========
* fix: add `data-popup="yes"` to the link with class `related-widget-wrapper-link`, then the popup will be shown when the user clicks on the link.
The JS logic got changed after Django 4.1 upgrade (#15301)

1.6.0 (2024-05-16)
==================
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load static i18n %}

<a class="btn cms-versioning-action-btn related-widget-wrapper-link" id="additional_content_settings_expiry_id_{{ field_id }}" href="{{ url }}" title="{% trans 'Additional Content Settings' %}">
<a class="btn cms-versioning-action-btn related-widget-wrapper-link" data-popup="yes" id="additional_content_settings_expiry_id_{{ field_id }}" href="{{ url }}" title="{% trans 'Additional Content Settings' %}">
<img src="{% static 'djangocms_content_expiry/svg/file.svg' %}">
</a>
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{% load static i18n %}
<a class="btn cms-moderation-action-btn js-moderation-action related-widget-wrapper-link cms-versioning-action-btn" id="change_content_expiry_id_{{ field_id }}" href="{{ url }}" title="{% trans 'Additional Content Settings' %}"><span class="svg-juxtaposed-font"><img src="{% static 'djangocms_content_expiry/svg/file.svg' %}" /></span></a>
<a class="btn cms-moderation-action-btn js-moderation-action related-widget-wrapper-link cms-versioning-action-btn" data-popup="yes" id="change_content_expiry_id_{{ field_id }}" href="{{ url }}" title="{% trans 'Additional Content Settings' %}"><span class="svg-juxtaposed-font"><img src="{% static 'djangocms_content_expiry/svg/file.svg' %}" /></span></a>

0 comments on commit a18d7a4

Please sign in to comment.