From d6c3eb9081fa462636efb053906250fce3ba4280 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Thu, 19 Dec 2019 11:21:58 +0200 Subject: [PATCH] attempt to fix paging --- public/index.html | 6 +++--- public/index.js | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/public/index.html b/public/index.html index 0130219..f1cffb4 100644 --- a/public/index.html +++ b/public/index.html @@ -90,12 +90,12 @@
Search
- +
-
LastFM
+
Last.fm
- Connect your LastFM account + Connect your Last.fm account
diff --git a/public/index.js b/public/index.js index f4c0e0d..021eb4b 100644 --- a/public/index.js +++ b/public/index.js @@ -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()