Skip to content
Snippets Groups Projects
Commit f53cb9d1 authored by ale's avatar ale
Browse files

visually merge playlists

parent 14c45997
Branches
No related tags found
No related merge requests found
...@@ -225,7 +225,19 @@ djr.Player.prototype.removeChunkCallback = function() { ...@@ -225,7 +225,19 @@ djr.Player.prototype.removeChunkCallback = function() {
}; };
djr.Player.prototype.mergePlaylistChunks = function() { djr.Player.prototype.mergePlaylistChunks = function() {
// Reduce the playlist to a single chunk.
this.playlist = this.playlist.merge(); this.playlist = this.playlist.merge();
// Shuffle the HTML data around (so we don't have to necessarily
// fetch it again from the server).
$('.chunk').each(function(idx, element) {
if (idx > 0) {
$('#chunk_0').append(element.html());
element.remove();
}
});
$('#chunk_0 .chunk_title').text(
this.playlist.chunk_map[this.playlist.chunks[0]].title);
}; };
// Search! // Search!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment