Replace jquery deprecated .live with .on
This commit is contained in:
parent
8ae2d2152b
commit
6990f8a846
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue