diff --git a/server/djrandom/frontend/static/player.js b/server/djrandom/frontend/static/player.js index ee9a51740f5ab8d3310ef7642deaa646ef4bae22..1bc9d6e754a1809d189616c2d6af04104ccb1239 100644 --- a/server/djrandom/frontend/static/player.js +++ b/server/djrandom/frontend/static/player.js @@ -103,8 +103,8 @@ djr.Playlist = function(uuid) { djr.Playlist.prototype.allSongs = function() { var songs = [], i, j; for (i = 0; i < this.chunks.length; i++) { - for (j = 0; j < this.chunk_map[this.chunks[chunk_id]].songs.length; j++) { - songs.push(this.chunk_map[this.chunks[chunk_id]].songs[j]); + for (j = 0; j < this.chunk_map[this.chunks[i]].songs.length; j++) { + songs.push(this.chunk_map[this.chunks[i]].songs[j]); } } return songs;