Skip to content

Commit

Permalink
Attempted fix for #460
Browse files Browse the repository at this point in the history
  • Loading branch information
eljeffeg committed Oct 10, 2021
1 parent 9c7ebb0 commit 8422929
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion static/js/pages/missions/box.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ $(document).ready(function() {
});

$(".flag-expand").click(function() {
if ($('.playstory').length === 0 || !$('.playstory').is(':hover')) {
var isHovered = $('.playstory').filter(function() {
return $(this).is(":hover");
});
if ($('.playstory').length === 0 || isHovered.length === 0) {
$(this).next(".flag-collapse").toggle();
$(this).next().next(".flag-collapse").toggle();
}
Expand Down

0 comments on commit 8422929

Please sign in to comment.