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:
parent
8669750a4b
commit
ebf5b3894d
@ -1085,6 +1085,10 @@ function clickLove() {
|
||||
'MPD_API_SEND_MESSAGE,mpdas,' +
|
||||
($('#btnlove').hasClass('active') ? 'unlove' : 'love')
|
||||
);
|
||||
socket.send(
|
||||
'MPD_API_SEND_MESSAGE,mpdscribble,' +
|
||||
($('#btnlove').hasClass('active') ? 'unlove' : 'love')
|
||||
);
|
||||
if ($('#btnlove').hasClass('active')) $('#btnlove').removeClass('active');
|
||||
else $('#btnlove').addClass('active');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user