Support adding video to playlist from watch page

This commit is contained in:
Omar Roth 2020-04-07 13:34:40 -05:00
parent 2e378da922
commit 3f97bebd69
No known key found for this signature in database
GPG key ID: B8254FB7EC3D37F2
7 changed files with 57 additions and 9 deletions

View file

@ -55,6 +55,9 @@
n2a(document.querySelectorAll('[data-onclick="mark_unwatched"]')).forEach(function (e) {
e.onclick = function () { mark_unwatched(e); };
});
n2a(document.querySelectorAll('[data-onclick="add_playlist_video"]')).forEach(function (e) {
e.onclick = function () { add_playlist_video(e); };
});
n2a(document.querySelectorAll('[data-onclick="add_playlist_item"]')).forEach(function (e) {
e.onclick = function () { add_playlist_item(e); };
});