From: Marcel Werk Date: Fri, 18 Jun 2021 09:11:38 +0000 (+0200) Subject: Handle active status of the subscribe button X-Git-Tag: 5.5.0_Alpha_1~621^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=936675377bd8c64e7c43068be9152d478d485bee;p=GitHub%2FWoltLab%2FWCF.git Handle active status of the subscribe button --- 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) {