mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Add toggle_parent to dynamic handlers
This commit is contained in:
parent
59a15ceef6
commit
bd7950b757
1 changed files with 43 additions and 43 deletions
|
@ -24,6 +24,9 @@
|
||||||
var load_more = e.getAttribute('data-load-more') !== null;
|
var load_more = e.getAttribute('data-load-more') !== null;
|
||||||
get_youtube_replies(e, load_more);
|
get_youtube_replies(e, load_more);
|
||||||
break;
|
break;
|
||||||
|
case 'toggle_parent':
|
||||||
|
toggle_parent(e);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -46,9 +49,6 @@
|
||||||
e.onsubmit = function () { return false; };
|
e.onsubmit = function () { return false; };
|
||||||
});
|
});
|
||||||
|
|
||||||
n2a(document.querySelectorAll('[data-onclick="toggle_parent"]')).forEach(function(e) {
|
|
||||||
e.onclick = function() { toggle_parent(e); };
|
|
||||||
});
|
|
||||||
n2a(document.querySelectorAll('[data-onclick="mark_watched"]')).forEach(function (e) {
|
n2a(document.querySelectorAll('[data-onclick="mark_watched"]')).forEach(function (e) {
|
||||||
e.onclick = function () { mark_watched(e); };
|
e.onclick = function () { mark_watched(e); };
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue