app/views/songs/player.haml in mix-rails-songs-0.15.0 vs app/views/songs/player.haml in mix-rails-songs-0.16.0
- old
+ new
@@ -26,10 +26,10 @@
$("#jquery_jplayer_1").bind $.jPlayer.event.play, (event, par2) ->
$("#musica-nome", _window.document).text event.jPlayer.status.media.title
$("#jquery_jplayer_1").bind $.jPlayer.event.pause, (event, par2) ->
- $.getJSON "#{songs_path(:json)}", (songs) =>
+ $.getJSON "#{@songs_api}", (songs) =>
new jPlayerPlaylist(
jPlayer: "#jquery_jplayer_1"
cssSelectorAncestor: "#jp_container_1"
, _.map(songs, (s) ->
s.title = s.title + " - " + s.author
\ No newline at end of file