Skip to content

Commit cac3d81

Browse files
LukeWCSmarc1706
authored andcommitted
[ticket/17492] Unintuitive checkbox status inverted for topic subscriptions
PHPBB-17492
1 parent 4060877 commit cac3d81

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

phpBB/styles/prosilver/template/viewtopic_topic_tools.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
<div class="pointer"><div class="pointer-inner"></div></div>
99
<ul class="dropdown-contents">
1010
<!-- EVENT viewtopic_topic_tools_before -->
11-
<!-- IF U_WATCH_TOPIC -->
11+
{% if U_WATCH_TOPIC %}
1212
<li>
13-
<a href="{U_WATCH_TOPIC}" class="watch-topic-link" title="{S_WATCH_TOPIC_TITLE}" data-ajax="toggle_link" data-toggle-class="icon <!-- IF S_WATCHING_TOPIC -->fa-check-square-o<!-- ELSE -->fa-square-o<!-- ENDIF --> fa-fw" data-toggle-text="{S_WATCH_TOPIC_TOGGLE}" data-toggle-url="{U_WATCH_TOPIC_TOGGLE}" data-update-all=".watch-topic-link">
14-
<i class="icon <!-- IF S_WATCHING_TOPIC -->fa-square-o<!-- ELSE -->fa-check-square-o<!-- ENDIF --> fa-fw" aria-hidden="true"></i><span>{S_WATCH_TOPIC_TITLE}</span>
13+
<a href="{{ U_WATCH_TOPIC }}" class="watch-topic-link" title="{{ S_WATCH_TOPIC_TITLE }}" data-ajax="toggle_link" data-toggle-class="icon fa-{{ !S_WATCHING_TOPIC ? 'check-' }}square-o fa-fw" data-toggle-text="{{ S_WATCH_TOPIC_TOGGLE }}" data-toggle-url="{{ U_WATCH_TOPIC_TOGGLE }}" data-update-all=".watch-topic-link">
14+
<i class="icon fa-{{ S_WATCHING_TOPIC ? 'check-' }}square-o fa-fw" aria-hidden="true"></i><span>{{ S_WATCH_TOPIC_TITLE }}</span>
1515
</a>
1616
</li>
17-
<!-- ENDIF -->
17+
{% endif %}
1818
<!-- IF U_BOOKMARK_TOPIC -->
1919
<li>
2020
<a href="{U_BOOKMARK_TOPIC}" class="bookmark-link" title="{L_BOOKMARK_TOPIC}" data-ajax="alt_text" data-alt-text="{S_BOOKMARK_TOGGLE}" data-update-all=".bookmark-link">

0 commit comments

Comments
 (0)