summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-08-18 14:45:49 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-08-18 14:45:49 +0200
commita5caacdf7bb3a1c1e6ef9129c835b0b3af572840 (patch)
treeb552655a235d3dde51772eaa127e94d0db31e3bf /static
parentab242e0ef2c3777e250f53ba897fd2117ee12d8b (diff)
Fixed recoding first track.
Diffstat (limited to 'static')
-rw-r--r--static/playlist.js3
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();
}