diff --git a/templates/parts.tmpl b/templates/parts.tmpl index a63766c..244e35d 100644 --- a/templates/parts.tmpl +++ b/templates/parts.tmpl @@ -58,7 +58,7 @@ function playPrev() { current--; - if (current <= 0) { + if (current < 0) { current = len - 1; } link = $playlist.find('a.track')[current];