Skip to content

Commit 360737c

Browse files
committed
Change the countries dropdown for new brand
1 parent f153351 commit 360737c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

static/coffee/v2_countries.coffee

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# wire in our countries dropdown
2+
$(->
3+
4+
$(".region-dropdown > a").click((e)->
5+
category = $(this).parent()
6+
open = $(category).hasClass("open")
7+
$(category).data("state", if open then "closed" else "open")
8+
$(category).siblings().removeClass("open")
9+
$(category).toggleClass("open")
10+
e.stopPropagation()
11+
return false
12+
)
13+
14+
)

0 commit comments

Comments
 (0)