From 0a9a089f026fc250f2350e646210f96572e47dd2 Mon Sep 17 00:00:00 2001 From: jcorporation Date: Mon, 25 Jun 2018 23:48:41 +0100 Subject: [PATCH] Fixed track adding in database view --- htdocs/js/mpd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index eba0c01..2172cb8 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -854,14 +854,14 @@ function parseListTitles(obj) { album.append(titleList); $('#card'+id+' > img').on({ click: function() { - sendAPI({"cmd":"MPD_API_ADD_TRACK", "data": { "track": decodeURI($(this).attr('uri'))}}); + sendAPI({"cmd":"MPD_API_ADD_TRACK", "data": { "uri": decodeURI($(this).attr('uri'))}}); showNotification('"'+decodeURI($(this).attr('data-album'))+'" added','','','success'); } }); $('#tbl'+id+' > tbody > tr').on({ click: function() { - sendAPI({"cmd":"MPD_API_ADD_TRACK", "data": { "track": decodeURI($(this).attr('uri'))}}); + sendAPI({"cmd":"MPD_API_ADD_TRACK", "data": { "uri": decodeURI($(this).attr('uri'))}}); showNotification('"' + $('td:nth-last-child(1)', this).text() + '" added','','','success'); } });