17 lines
463 B
CoffeeScript
Raw Permalink Normal View History

2012-09-02 02:03:19 +04:00
$ ->
2012-09-10 03:47:36 +04:00
$(".track-play").live "mouseup", (e) ->
2012-09-02 02:03:19 +04:00
e.preventDefault()
id = parseInt($(this).parent().data("id"), 10)
2012-09-10 03:47:36 +04:00
BH.Player.playlist_on = false
2012-09-02 02:03:19 +04:00
BH.Player.tracks.get(id).play()
2012-09-10 03:47:36 +04:00
$(".track-pause").live "mouseup", (e) ->
2012-09-02 02:38:28 +04:00
e.preventDefault()
id = parseInt($(this).parent().data("id"), 10)
BH.Player.tracks.get(id).pause()
2012-09-10 03:47:36 +04:00
$(".track-add").live "mouseup", (e) ->
e.preventDefault()
id = parseInt($(this).parent().data("id"), 10)