diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-02-16 14:24:15 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-02-16 14:26:08 -0600 |
| commit | f8467fcda64485293b2d94133fe90f751127e146 (patch) | |
| tree | 9e6de8dda168d927c79af5a51c5ba43e6b99e84a /assets/js | |
| parent | 9f00dba0cb1a918668f806d0d705117aef5bf5f1 (diff) | |
| download | invidious-f8467fcda64485293b2d94133fe90f751127e146.tar.gz invidious-f8467fcda64485293b2d94133fe90f751127e146.tar.bz2 invidious-f8467fcda64485293b2d94133fe90f751127e146.zip | |
Fix locale text for "Show replies"
Diffstat (limited to 'assets/js')
| -rw-r--r-- | assets/js/watch.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/assets/js/watch.js b/assets/js/watch.js index 0126c586..37ca4e43 100644 --- a/assets/js/watch.js +++ b/assets/js/watch.js @@ -35,20 +35,20 @@ String.prototype.supplant = function(o) { }); }; -function show_youtube_replies(target) { +function show_youtube_replies(target, inner_text, sub_text) { body = target.parentNode.parentNode.children[1]; body.style.display = ""; - target.innerHTML = "Hide replies"; - target.setAttribute("onclick", "hide_youtube_replies(this)"); + target.innerHTML = inner_text; + target.setAttribute("onclick", "hide_youtube_replies(this, \'" + inner_text + "\', \'" + sub_text + "\')"); } -function hide_youtube_replies(target) { +function hide_youtube_replies(target, inner_text, sub_text) { body = target.parentNode.parentNode.children[1]; body.style.display = "none"; - target.innerHTML = "Show replies"; - target.setAttribute("onclick", "show_youtube_replies(this)"); + target.innerHTML = sub_text; + target.setAttribute("onclick", "show_youtube_replies(this, \'" + inner_text + "\', \'" + sub_text + "\')"); } function download_video(target) { |
