From: SuperBFG7 Date: Thu, 17 Jun 2021 08:07:52 +0000 (+0200) Subject: add mpdscribble support for love button X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=ebf5b3894d1f52de861836c2ac9cc20fef705d8c;p=ympd.git add mpdscribble support for love button --- diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index 73d4ba5..1f62534 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -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'); }