# HG changeset patch # User neko259 # Date 2016-12-29 14:51:10 # Node ID fa9529ca29ec1944991496a661490fe2c4da6f7c # Parent 5aa523da48b8d34625ae25593c0d647d1ad36031 Do not update global fav button instead of thread's one 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 }}