From a5caacdf7bb3a1c1e6ef9129c835b0b3af572840 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Thu, 18 Aug 2011 14:45:49 +0200 Subject: Fixed recoding first track. --- static/playlist.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/playlist.js b/static/playlist.js index 5aeb1d3..44b72ae 100644 --- a/static/playlist.js +++ b/static/playlist.js @@ -103,7 +103,8 @@ function Playlist(pl, audio) { li.appendChild(span); this.pl.appendChild(li); - if(this.pl.firstChild == li || (this.current && this.current.nextElementSibling == li)) + if(this.pl.firstChild == li || (this.current && this.current.nextElementSibling == li) + || (this.pl.firstChild.getAttribute('class') == 'album' && this.pl.firstChild.nextElementSibling == li)) ml.recode(); } -- cgit v1.2.3