Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reset the selected song when moving between pages

  • Loading branch information...
commit 96e515d0a711316c375351789930f2d9e7a0f122 1 parent cbd2076
@lukeledet authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  app/assets/javascripts/songs.js.coffee
View
3  app/assets/javascripts/songs.js.coffee
@@ -34,6 +34,9 @@ jQuery ($) ->
$('#cancel-search').on 'click', ->
cancel_search()
+ $(document).on 'click', '.pagination a', ->
+ window.selected_song = null
+
setInterval ->
return if elapsed == null
Please sign in to comment.
Something went wrong with that request. Please try again.