This commit is contained in:
Evert Prants 2019-12-19 11:23:46 +02:00
parent d6c3eb9081
commit efc4d8df91
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -497,8 +497,7 @@
clear.style.display = 'none' clear.style.display = 'none'
} }
if (page > pages) page = pageNum = pages if (page > pages) page = pages
if (page < pages) page = pageNum = 1
updatePaging() updatePaging()
if (playlist === -1) { if (playlist === -1) {
@ -747,6 +746,7 @@
}, false) }, false)
document.getElementById('jump-prev').addEventListener('click', function (e) { document.getElementById('jump-prev').addEventListener('click', function (e) {
if (pageNum <= 0) return
showTracks(pageNum - 1) showTracks(pageNum - 1)
}, false) }, false)