diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-08-18 14:45:49 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-08-18 14:45:49 +0200 |
commit | a5caacdf7bb3a1c1e6ef9129c835b0b3af572840 (patch) | |
tree | b552655a235d3dde51772eaa127e94d0db31e3bf | |
parent | ab242e0ef2c3777e250f53ba897fd2117ee12d8b (diff) |
Fixed recoding first track.
-rw-r--r-- | static/playlist.js | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } |