attempt to fix paging

This commit is contained in:
Evert Prants 2019-12-19 11:21:58 +02:00
parent ddd8d4e3b2
commit d6c3eb9081
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 6 additions and 5 deletions

View File

@ -90,12 +90,12 @@
</div>
<div class="separator">Search</div>
<div class="option checkbox">
<label for="st-streamable">Include streamable tracks in searches (experimental)</label>
<label for="st-streamable">Include streamable tracks in searches</label>
<input type="checkbox" id="st-streamable" name="streamable">
</div>
<div class="separator">LastFM</div>
<div class="separator">Last.fm</div>
<div class="option url" id="lfm-connect">
<a href="/api/lastfm/connect">Connect your LastFM account</a>
<a href="/api/lastfm/connect">Connect your Last.fm account</a>
</div>
<div class="option url" id="lfm-disconnect">
<label id="lfm-connected"></label>

View File

@ -497,7 +497,8 @@
clear.style.display = 'none'
}
if (page > pages) page = pages
if (page > pages) page = pageNum = pages
if (page < pages) page = pageNum = 1
updatePaging()
if (playlist === -1) {
@ -796,7 +797,7 @@
httpGet('/user/info').then(function (data) {
user = data
loggedin.innerHTML = 'Logged in as ' + data.username
// LastFM
// Last.fm
httpGet('/api/lastfm').then(function (data) {
user.lastfm = data
updateLastFMOptions()