1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-12-22 17:10:26 +00:00

add mpdscribble support for love button

This commit is contained in:
SuperBFG7 2021-06-17 10:07:52 +02:00
parent 8669750a4b
commit ebf5b3894d

View File

@ -1085,6 +1085,10 @@ function clickLove() {
'MPD_API_SEND_MESSAGE,mpdas,' + 'MPD_API_SEND_MESSAGE,mpdas,' +
($('#btnlove').hasClass('active') ? 'unlove' : 'love') ($('#btnlove').hasClass('active') ? 'unlove' : 'love')
); );
socket.send(
'MPD_API_SEND_MESSAGE,mpdscribble,' +
($('#btnlove').hasClass('active') ? 'unlove' : 'love')
);
if ($('#btnlove').hasClass('active')) $('#btnlove').removeClass('active'); if ($('#btnlove').hasClass('active')) $('#btnlove').removeClass('active');
else $('#btnlove').addClass('active'); else $('#btnlove').addClass('active');
} }