Change window.location to use turbolinks
This commit is contained in:
parent
51031a68f7
commit
0591a7820b
1 changed files with 2 additions and 3 deletions
|
@ -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'))
|
||||
|
|
Loading…
Reference in a new issue