Skip to content

Commit

Permalink
Fix bookmark list callback not working anymore
Browse files Browse the repository at this point in the history
- the bookmark_list component was forgotten when moving the linkCallback code into the new html-refresh controller
  • Loading branch information
BentiGorlich committed Jan 14, 2025
1 parent b388f9e commit 00fc43e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/components/bookmark_list.html.twig
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<li class="bookmark-list">
{% if is_bookmarked_in_list(app.user, list, subject) %}
<a href="{{ path('subject_remove_bookmark_from_list', { 'subject_id': subject.id, 'subject_type': get_subject_type(subject), 'list': list.id }) }}"
data-subject-cssclass-param="bookmark-list" data-subject-refreshselector-param=".bookmark-standard"
data-subject-refreshlink-param="{{ path('subject_bookmark_refresh_status', { subject_id: subject.id, subject_type: get_subject_type(subject) }) }}"
data-html-refresh-cssclass-param="bookmark-list" data-html-refresh-refreshselector-param=".bookmark-standard"
data-html-refresh-refreshlink-param="{{ path('subject_bookmark_refresh_status', { subject_id: subject.id, subject_type: get_subject_type(subject) }) }}"
data-action="html-refresh#linkCallback">
<i class="fa-solid fa-bookmark active"></i>
{{ 'bookmark_remove_from_list'|trans({'%list%': list.name}) }}
</a>
{% else %}
<a href="{{ path('subject_bookmark_to_list', { 'subject_id': subject.id, 'subject_type': get_subject_type(subject), 'list': list.id }) }}"
data-subject-cssclass-param="bookmark-list" data-subject-refreshselector-param=".bookmark-standard"
data-subject-refreshlink-param="{{ path('subject_bookmark_refresh_status', { subject_id: subject.id, subject_type: get_subject_type(subject) }) }}"
data-html-refresh-cssclass-param="bookmark-list" data-html-refresh-refreshselector-param=".bookmark-standard"
data-html-refresh-refreshlink-param="{{ path('subject_bookmark_refresh_status', { subject_id: subject.id, subject_type: get_subject_type(subject) }) }}"
data-action="html-refresh#linkCallback">
<i class="fa-regular fa-bookmark"></i>
{{ 'bookmark_add_to_list'|trans({'%list%': list.name}) }}
Expand Down

0 comments on commit 00fc43e

Please sign in to comment.