Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,12 @@ $ ->
updateLocaleButtonsStatus($dom)
$tabs.filter('.default').click()

$a = $("a")
# jQuery 1.7 introduced "on" and deprecated "bind"
# AA 1.2 bumps jquery-rails to >= 4.2, so we can drop "bind" once AA req is bumped
bindingMethod = if ("on" of $a && typeof $a.on == 'function') then "on" else "bind"
# this is to handle elements created with has_many
$("a").bind "click", ->
$a[bindingMethod] "click", ->
setTimeout(
-> translations()
50
Expand Down