diff --git a/boards/static/js/thread_update.js b/boards/static/js/thread_update.js --- a/boards/static/js/thread_update.js +++ b/boards/static/js/thread_update.js @@ -154,7 +154,7 @@ function getThreadDiff() { $('.metapanel').attr('data-last-update', data.last_update); if (data.subscribed == 'True') { - var favButton = $('.not_fav'); + var favButton = $('#thread-fav-button .not_fav'); if (favButton.length > 0) { favButton.attr('value', 'unsubscribe'); diff --git a/boards/templates/boards/thread_normal.html b/boards/templates/boards/thread_normal.html --- a/boards/templates/boards/thread_normal.html +++ b/boards/templates/boards/thread_normal.html @@ -16,9 +16,9 @@
{% csrf_token %} {% if is_favorite %} - + {% else %} - + {% endif %}
{{ opening_post.get_title_or_text }}