summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-05-23 14:07:42 +0200
committerMarin Jankovski <marin@gitlab.com>2014-05-23 14:07:42 +0200
commit6990f8a8464fd579c7152512d3d3b25b60b6f5c9 (patch)
tree1aa90bfe7c36e7bc968c382a6befd422f024e179
parent8ae2d2152b197931725a3f4b9aa3697f37988c20 (diff)
downloadgitlab-ce-6990f8a8464fd579c7152512d3d3b25b60b6f5c9.tar.gz
Replace jquery deprecated .live with .on
-rw-r--r--app/assets/javascripts/commits.js.coffee2
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()