BigW Consortium Gitlab

Commit 0591a782 by Annabel Dunstone

Change window.location to use turbolinks

parent 51031a68
...@@ -56,6 +56,5 @@ class @Todos ...@@ -56,6 +56,5 @@ class @Todos
$('.todos-pending .badge, .todos-pending-count').text data.count $('.todos-pending .badge, .todos-pending-count').text data.count
$('.todos-done .badge').text data.done_count $('.todos-done .badge').text data.done_count
goToTodoUrl: (e) -> goToTodoUrl: ->
$this = $(e.currentTarget) Turbolinks.visit($(this).data('url'))
window.location.href = $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