mirror of
https://github.com/SuperBFG7/ympd
synced 2024-12-27 19:30:27 +00:00
Fixed track adding in database view
This commit is contained in:
parent
c178705e12
commit
0a9a089f02
@ -854,14 +854,14 @@ function parseListTitles(obj) {
|
|||||||
album.append(titleList);
|
album.append(titleList);
|
||||||
$('#card'+id+' > img').on({
|
$('#card'+id+' > img').on({
|
||||||
click: function() {
|
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');
|
showNotification('"'+decodeURI($(this).attr('data-album'))+'" added','','','success');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#tbl'+id+' > tbody > tr').on({
|
$('#tbl'+id+' > tbody > tr').on({
|
||||||
click: function() {
|
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');
|
showNotification('"' + $('td:nth-last-child(1)', this).text() + '" added','','','success');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user