mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Fix locale text for "Show replies"
This commit is contained in:
parent
9f00dba0cb
commit
f8467fcda6
2 changed files with 7 additions and 7 deletions
|
@ -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 = target.parentNode.parentNode.children[1];
|
||||||
body.style.display = "";
|
body.style.display = "";
|
||||||
|
|
||||||
target.innerHTML = "Hide replies";
|
target.innerHTML = inner_text;
|
||||||
target.setAttribute("onclick", "hide_youtube_replies(this)");
|
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 = target.parentNode.parentNode.children[1];
|
||||||
body.style.display = "none";
|
body.style.display = "none";
|
||||||
|
|
||||||
target.innerHTML = "Show replies";
|
target.innerHTML = sub_text;
|
||||||
target.setAttribute("onclick", "show_youtube_replies(this)");
|
target.setAttribute("onclick", "show_youtube_replies(this, \'" + inner_text + "\', \'" + sub_text + "\')");
|
||||||
}
|
}
|
||||||
|
|
||||||
function download_video(target) {
|
function download_video(target) {
|
||||||
|
|
|
@ -460,7 +460,7 @@ function get_youtube_replies(target, load_more) {
|
||||||
} else {
|
} else {
|
||||||
body.innerHTML = ' \
|
body.innerHTML = ' \
|
||||||
<p><a href="javascript:void(0)" \
|
<p><a href="javascript:void(0)" \
|
||||||
onclick="hide_youtube_replies(this)"><%= translate(locale, "Hide replies") %> \
|
onclick="hide_youtube_replies(this, \'<%= translate(locale, "Hide replies") %>\', \'<%= translate(locale, "Show replies") %>\')"><%= translate(locale, "Hide replies") %> \
|
||||||
</a></p> \
|
</a></p> \
|
||||||
<div>{contentHtml}</div>'.supplant({
|
<div>{contentHtml}</div>'.supplant({
|
||||||
contentHtml: xhr.response.contentHtml,
|
contentHtml: xhr.response.contentHtml,
|
||||||
|
|
Loading…
Reference in a new issue