summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}