Commit 6990f8a8464fd579c7152512d3d3b25b60b6f5c9

Authored by Marin Jankovski
1 parent 8ae2d215

Replace jquery deprecated .live with .on

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/assets/javascripts/commits.js.coffee
@@ -12,7 +12,7 @@ class CommitsList @@ -12,7 +12,7 @@ class CommitsList
12 $('.loading').hide() 12 $('.loading').hide()
13 13
14 @init: (ref, limit) -> 14 @init: (ref, limit) ->
15 - $(".day-commits-table li.commit").live 'click', (event) -> 15 + $("body").on "click", ".day-commits-table li.commit", (event) ->
16 if event.target.nodeName != "A" 16 if event.target.nodeName != "A"
17 location.href = $(this).attr("url") 17 location.href = $(this).attr("url")
18 e.stopPropagation() 18 e.stopPropagation()