From 6c1cf3e745875c5e8ffb563af265fb090b4e3df4 Mon Sep 17 00:00:00 2001 From: jcorporation Date: Mon, 9 Jul 2018 18:50:21 +0100 Subject: [PATCH] More details for songdetails view --- htdocs/index.html | 2 ++ htdocs/js/mpd.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/index.html b/htdocs/index.html index 3b68e55..397dd8f 100644 --- a/htdocs/index.html +++ b/htdocs/index.html @@ -685,8 +685,10 @@ Artist Album + Track Albumartist Genre + Date Uri diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index 80379bb..03b6c12 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -1132,7 +1132,7 @@ function songDetails(uri) { function parseSongDetails(obj) { var modal = document.getElementById('modalSongDetails'); - modal.querySelector('.album-cover').style.backgroundImage = 'url(' + obj.data.cover + ')'; + modal.querySelector('.album-cover').style.backgroundImage = 'url("' + obj.data.cover + '")'; modal.getElementsByTagName('h1')[0].innerText = obj.data.title; var tr = modal.getElementsByTagName('tr'); var trLen = tr.length;