Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Commit

Permalink
Workaround for #18. Fixed #18
Browse files Browse the repository at this point in the history
  • Loading branch information
mikojimnz committed Nov 17, 2021
1 parent a539902 commit f7eefc1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
16 changes: 15 additions & 1 deletion app/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ <h1 class="heading-underline">News & Events</h1>
<div class="btn-group filter-button-group" role="group" aria-label="Notification Sort" id="news-sort">
<button type="button" class="btn btn-default notification-sort" data-filter=".news">News</button>
<button type="button" class="btn btn-default notification-sort" data-filter=".events">Events</button>
<button type="button" class="btn btn-default notification-sort" data-filter="*">All</button>
<button type="button" class="btn btn-default notification-sort btn-init" data-filter="*">All</button>
</div>
</div>
</div>
Expand Down Expand Up @@ -240,4 +240,18 @@ <h6>Quick Links</h6>
<script src="../locales/news.js"></script>
<script src="../scripts/lingumania.js"></script>
<script src="../scripts/app.js"></script>
<script>
/* Workaround for #18 Isotope list groups colliding */

var triggered = false;

$(window).on("scroll mouseover", function() {
if (triggered) {
return;
} else {
$(".btn-init").trigger("click");
triggered = true;
}
});
</script>
</html>
16 changes: 15 additions & 1 deletion app/notifications.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ <h2 class="text-center text-uppercase">Notifications</h2>
<div class="btn-group filter-button-group" role="group" aria-label="Notification Sort" id="notification-sort">
<button type="button" class="btn btn-default notification-sort" data-filter=".unread">Unread</button>
<button type="button" class="btn btn-default notification-sort" data-filter=".events">Events</button>
<button type="button" class="btn btn-default notification-sort" data-filter="*">All</button>
<button type="button" class="btn btn-default notification-sort btn-init" data-filter="*">All</button>
</div>
</div>
</div>
Expand Down Expand Up @@ -215,4 +215,18 @@ <h5 class="mb-1">Orlando Magic Game</h5>
<script src="../locales/notifications.js"></script>
<script src="../scripts/lingumania.js"></script>
<script src="../scripts/app.js"></script>
<script>
/* Workaround for #18 Isotope list groups colliding */

var triggered = false;

$(window).on("scroll mouseover", function() {
if (triggered) {
return;
} else {
$(".btn-init").trigger("click");
triggered = true;
}
});
</script>
</html>

0 comments on commit f7eefc1

Please sign in to comment.