Skip to content

Commit

Permalink
Change the countries dropdown for new brand
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Jan 16, 2024
1 parent f153351 commit 360737c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions static/coffee/v2_countries.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# wire in our countries dropdown
$(->

$(".region-dropdown > a").click((e)->
category = $(this).parent()
open = $(category).hasClass("open")
$(category).data("state", if open then "closed" else "open")
$(category).siblings().removeClass("open")
$(category).toggleClass("open")
e.stopPropagation()
return false
)

)

0 comments on commit 360737c

Please sign in to comment.