Skip to content
Browse files

Update admins.js.coffee

Changed $.live() with $(document).on
  • Loading branch information...
1 parent ac40c23 commit 474b9d8fa646342cbbb13b4f69c49e02f95b5e7b @JazzJackrabbit JazzJackrabbit committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 vendor/assets/javascripts/activeadmin_settings/admins.js.coffee
View
6 vendor/assets/javascripts/activeadmin_settings/admins.js.coffee
@@ -21,19 +21,19 @@ $ ->
tr.find(".admin_actions").hide()
tr.find(".form_actions").show()
- $("#admins .admin .credentials_link").live "click", (e) ->
+ $('document').on 'click', "#admins .admin .credentials_link", (e) ->
e.preventDefault()
btn = $(this)
tr = $(btn.attr("data-id"))
show_credentials_form(tr)
- $("#admins .admin .cancel_link").live "click", (e) ->
+ $('document').on 'click', "#admins .admin .cancel_link", (e) ->
e.preventDefault()
btn = $(this)
tr = $(btn.attr("data-id"))
hide_credentials_form(tr)
- $("#admins .admin .update_link").live "click", (e) ->
+ $('document').on 'click', "#admins .admin .update_link", (e) ->
e.preventDefault()
btn = $(this)
tr = $(btn.attr("data-id"))

0 comments on commit 474b9d8

Please sign in to comment.
Something went wrong with that request. Please try again.