diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-05-23 16:07:42 +0400 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-05-27 11:12:57 +0400 |
commit | de41e7a3da92d6f3ef9ad608732ef96c9019724a (patch) | |
tree | 196a3770d599ea26e177c836c8a99846bddda2c2 /app | |
parent | 01b03a819192d4677f68d84d46e7f7c95a3cd306 (diff) |
Replace jquery deprecated .live with .on
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/commits.js.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/commits.js.coffee b/app/assets/javascripts/commits.js.coffee index 9c004c997ed..784d7d20bb1 100644 --- a/app/assets/javascripts/commits.js.coffee +++ b/app/assets/javascripts/commits.js.coffee @@ -12,7 +12,7 @@ class CommitsList $('.loading').hide() @init: (ref, limit) -> - $(".day-commits-table li.commit").live 'click', (event) -> + $("body").on "click", ".day-commits-table li.commit", (event) -> if event.target.nodeName != "A" location.href = $(this).attr("url") e.stopPropagation() |