Skip to content

Commit

Permalink
Fixed js issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Feb 24, 2021
1 parent 6b8347e commit 92f9a2d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions View/Elements/Components/search.ctp
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<script type="text/javascript">
$(function() {
var collapse = $(".collapse"),
btn btn-grouper = $(".adv-search-link"),
btn = $(".adv-search-link"),
open = false;

btn btn-grouper.addClass("active");
btn.addClass("active");
collapse.hide();
btn btn-grouper.click(function(ev) {
btn.click(function(ev) {
ev.preventDefault();
open = !open;
collapse.slideToggle();
btn btn-grouper.toggleClass('active');
btn btn-grouper.find('.fa').toggleClass('fa-caret-down').toggleClass('fa-caret-up');
btn.toggleClass('active');
btn.find('.fa').toggleClass('fa-caret-down').toggleClass('fa-caret-up');
});
});
</script>
Expand Down

0 comments on commit 92f9a2d

Please sign in to comment.