From 53405d0fb2e1014debafd244d83737b4d5e17922 Mon Sep 17 00:00:00 2001 From: PrestonT500 Date: Thu, 19 Sep 2024 09:55:53 -0700 Subject: [PATCH] Fix buttons 1 --- js/mobilecheck.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/mobilecheck.js b/js/mobilecheck.js index 9e0f5da..e63bc41 100644 --- a/js/mobilecheck.js +++ b/js/mobilecheck.js @@ -21,11 +21,16 @@ $(document).ready(function() { }); } + $(".filter-button").on("click", function(event) { + event.preventDefault(); + var url = $(this).data("url"); + window.location.href = url; + }); + $("#mobileCheckbox").on("change", function() { updateVisibility(); updateLinks(); }); - // Initialize visibility and links based on the checkbox state updateVisibility(); });