diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-05-23 16:07:42 +0400 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-05-23 16:07:42 +0400 |
commit | 6990f8a8464fd579c7152512d3d3b25b60b6f5c9 (patch) | |
tree | 1aa90bfe7c36e7bc968c382a6befd422f024e179 /app/assets | |
parent | 8ae2d2152b197931725a3f4b9aa3697f37988c20 (diff) |
Replace jquery deprecated .live with .on
Diffstat (limited to 'app/assets')
-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() |