projects
/
ympd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8669750
)
add mpdscribble support for love button
author
SuperBFG7
<daniel@despite.ch>
Thu, 17 Jun 2021 08:07:52 +0000
(10:07 +0200)
committer
SuperBFG7
<daniel@despite.ch>
Thu, 17 Jun 2021 08:07:52 +0000
(10:07 +0200)
htdocs/js/mpd.js
patch
|
blob
|
history
diff --git
a/htdocs/js/mpd.js
b/htdocs/js/mpd.js
index
73d4ba5
..
1f62534
100644
(file)
--- 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');
}