Commit 0591a782 authored by Annabel Dunstone's avatar Annabel Dunstone

Change window.location to use turbolinks

parent 51031a68
......@@ -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'))
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