From 936675377bd8c64e7c43068be9152d478d485bee Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 18 Jun 2021 11:11:38 +0200 Subject: [PATCH] Handle active status of the subscribe button --- wcfsetup/install/files/js/WCF.User.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index 8ca622a056..ef6bbd6f03 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -2942,6 +2942,7 @@ if (COMPILER_TARGET_DEFAULT) { if (data.isSubscribed) { $icon.removeClass('fa-bookmark-o').addClass('fa-bookmark'); $button.data('isSubscribed', true); + $button.addClass('active'); } else { if ($button.data('removeOnUnsubscribe')) { @@ -2950,6 +2951,7 @@ if (COMPILER_TARGET_DEFAULT) { else { $icon.removeClass('fa-bookmark').addClass('fa-bookmark-o'); $button.data('isSubscribed', false); + $button.removeClass('active'); } if (this._reloadOnUnsubscribe) { -- 2.20.1