summaryrefslogtreecommitdiff
path: root/static/sound.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/sound.js')
-rw-r--r--static/sound.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/static/sound.js b/static/sound.js
index 252741c..874c213 100644
--- a/static/sound.js
+++ b/static/sound.js
@@ -1,6 +1,6 @@
function playsound(model) {
var item = model.toJSON();
- var id = item.id;
+ var id = item.track_id;
var cid = model.cid;
var el = $('#cid-' + cid);
el.addClass('loading');
@@ -10,7 +10,7 @@ function playsound(model) {
}
sound = soundManager.createSound({
id: 'audio',
- url: '/track/' + item.id,
+ url: '/track/' + id,
whileloading: function() {
$('#status').text('Loading... ' + this.bytesLoaded);
el.addClass('loading');