From d7a57c76f6f327f4a5520a437b2d17a02bc58a99 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 9 Mar 2012 23:15:16 +0100 Subject: Changed ordering to use a comparator function. --- static/sound.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static/sound.js') diff --git a/static/sound.js b/static/sound.js index c4f2dbf..07366ff 100644 --- a/static/sound.js +++ b/static/sound.js @@ -1,7 +1,7 @@ function playsound(model) { playlist.hintnext(); var item = model.toJSON(); - var id = item.track_id; + var id = item.id; var cid = model.cid; var el = $('#cid-' + cid); el.addClass('loading'); @@ -55,7 +55,7 @@ function playsound(model) { function sound_hint(model) { $('#cid-' + model.cid).addClass('loading'); - $.get('/json/hint/' + model.attributes.track_id, function(data) { + $.get('/json/hint/' + model.id, function(data) { $('#cid-' + model.cid).removeClass('nocache').removeClass('loading'); }); } -- cgit v1.2.3