From bdee7893dc1286edadbdf5921ea6a16fe2e172a7 Mon Sep 17 00:00:00 2001 From: WebPropelled Date: Thu, 20 Aug 2015 15:41:47 +0100 Subject: [PATCH] Toggle 'filteractive' class to filter click event --- public/assets/js/public.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/assets/js/public.js b/public/assets/js/public.js index 9f9d551..250bcc3 100755 --- a/public/assets/js/public.js +++ b/public/assets/js/public.js @@ -69,6 +69,8 @@ // Set up the click event for filtering $('#filters').on('click', 'a', function ( event ) { event.preventDefault(); + $('#filters a.filteractive').removeClass('filteractive'); + $(this).addClass('filteractive'); var selector = $(this).attr('data-filter'), niceSelector = selector.substr(1);