Skip to content

Commit

Permalink
fixed UI bug when hovering over custom badges on profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Dec 4, 2024
1 parent afdb872 commit 7fb3aef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/static/scripts/scoold.js
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ $(function () {
$(document).on("mouseenter", ".custom-badge", function () {
var dis = $(this);
if (dis.hasClass("add")) {
dis.find(".fa-plus, a").removeClass("hide");
dis.find(".fa-plus").removeClass("hide");
} else if ($(this).hasClass("remove")) {
dis.find(".fa-minus").removeClass("hide");
}
Expand All @@ -760,7 +760,7 @@ $(function () {
if (dis.hasClass("add")) {
dis.find(".fa-plus").addClass("hide");
} else if ($(this).hasClass("remove")) {
dis.find(".fa-minus, a").addClass("hide");
dis.find(".fa-minus").addClass("hide");
}
});

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/macro.vm
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@
<i class="fa fa-plus hide tooltipped" data-tooltip="$!lang.get('addbadge')"></i>
#if($badge.icon)<span class="badge-icon">$!badge.icon</span>#end
<a href="$peoplelink/tag/$!badge.tag"><b>$!badge.name</b></a>
<a href="$profilelink/delete-badge/$!badge.tag" class="hide post-refresh-ask" style="$style">
<a href="$profilelink/delete-badge/$!badge.tag" class="post-refresh-ask #if(!$isMod)hide#end" style="$style">
<i class="fa fa-close tooltipped mhs" data-tooltip="$!lang.get('deletebadge')"></i>
</a>
</span>
Expand Down

0 comments on commit 7fb3aef

Please sign in to comment.