MCPcopy
hub / github.com/andrewrk/groovebasin / onAddToPlaylistListClick

Function onAddToPlaylistListClick

src/client/app.js:2449–2458  ·  view source on GitHub ↗
(ev)

Source from the content-addressed store, hash-verified

2447}
2448
2449function onAddToPlaylistListClick(ev) {
2450 ev.stopPropagation();
2451 ev.preventDefault();
2452 var clickedLi = getFirstChildToward(addToPlaylistList, ev.target);
2453 if (!clickedLi) return;
2454 if (!havePerm('playlist')) return;
2455 if (!ev.shiftKey) closeOpenDialog();
2456 var playlistId = clickedLi.getAttribute('data-key');
2457 player.queueOnPlaylist(playlistId, selection.toTrackKeys());
2458}
2459
2460function onAddToPlaylistNewClick(ev) {
2461 ev.stopPropagation();

Callers

nothing calls this directly

Calls 2

getFirstChildTowardFunction · 0.85
havePermFunction · 0.85

Tested by

no test coverage detected