Change window.location to use turbolinks

This commit is contained in:
Annabel Dunstone 2016-03-30 11:34:33 -05:00
parent 51031a68f7
commit 0591a7820b

View file

@ -56,6 +56,5 @@ class @Todos
$('.todos-pending .badge, .todos-pending-count').text data.count
$('.todos-done .badge').text data.done_count
goToTodoUrl: (e) ->
$this = $(e.currentTarget)
window.location.href = $this.data('url')
goToTodoUrl: ->
Turbolinks.visit($(this).data('url'))