summaryrefslogtreecommitdiff
path: root/static/sound.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/sound.js')
-rw-r--r--static/sound.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/static/sound.js b/static/sound.js
index 874c213..c4f2dbf 100644
--- a/static/sound.js
+++ b/static/sound.js
@@ -1,4 +1,5 @@
function playsound(model) {
+ playlist.hintnext();
var item = model.toJSON();
var id = item.track_id;
var cid = model.cid;
@@ -51,3 +52,10 @@ function playsound(model) {
sound.play();
$('#cid-' + cid).addClass('playing');
}
+
+function sound_hint(model) {
+ $('#cid-' + model.cid).addClass('loading');
+ $.get('/json/hint/' + model.attributes.track_id, function(data) {
+ $('#cid-' + model.cid).removeClass('nocache').removeClass('loading');
+ });
+}