projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c230192
)
Handle active status of the subscribe button
author
Marcel Werk
<burntime@woltlab.com>
Fri, 18 Jun 2021 09:11:38 +0000
(11:11 +0200)
committer
Marcel Werk
<burntime@woltlab.com>
Fri, 18 Jun 2021 09:11:38 +0000
(11:11 +0200)
wcfsetup/install/files/js/WCF.User.js
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install/files/js/WCF.User.js
b/wcfsetup/install/files/js/WCF.User.js
index 8ca622a05695460b188160f0d88e2a70efc08d26..ef6bbd6f03097acfe454b27e56910fb836f68ef8 100644
(file)
--- 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) {