Commit 6990f8a8 authored by Marin Jankovski's avatar Marin Jankovski

Replace jquery deprecated .live with .on

parent 8ae2d215
...@@ -12,7 +12,7 @@ class CommitsList ...@@ -12,7 +12,7 @@ class CommitsList
$('.loading').hide() $('.loading').hide()
@init: (ref, limit) -> @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" if event.target.nodeName != "A"
location.href = $(this).attr("url") location.href = $(this).attr("url")
e.stopPropagation() e.stopPropagation()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment