From 7d680fe252b5d4e5c28619e8ba1e67705891a0c2 Mon Sep 17 00:00:00 2001 From: jcass Date: Sun, 21 Feb 2016 20:14:39 +0200 Subject: [PATCH] Only push album cover if more than one tracks are being shown for an album. --- mopidy_musicbox_webclient/static/js/functionsvars.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mopidy_musicbox_webclient/static/js/functionsvars.js b/mopidy_musicbox_webclient/static/js/functionsvars.js index 1d0ebb9..011aee5 100644 --- a/mopidy_musicbox_webclient/static/js/functionsvars.js +++ b/mopidy_musicbox_webclient/static/js/functionsvars.js @@ -343,10 +343,10 @@ function resultsToTables(results, target, uri) { } newalbum = []; newtlids = []; + if (results[i].album) { + coversList.push([results[i].uri, i]); + } } //newalbum length - if (results[i].album) { - coversList.push([results[i].uri, i]); - } } //albums name } }