diff --git a/public/index.js b/public/index.js index 021eb4b..6156b0e 100644 --- a/public/index.js +++ b/public/index.js @@ -497,8 +497,7 @@ clear.style.display = 'none' } - if (page > pages) page = pageNum = pages - if (page < pages) page = pageNum = 1 + if (page > pages) page = pages updatePaging() if (playlist === -1) { @@ -747,6 +746,7 @@ }, false) document.getElementById('jump-prev').addEventListener('click', function (e) { + if (pageNum <= 0) return showTracks(pageNum - 1) }, false)