From: Jakobus Schürz Date: Thu, 5 Oct 2023 15:19:16 +0000 (+0200) Subject: use scrollToItem instead of own function X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a82127092bd06e30e23c811fced5f3d4ddf2b24a;p=friendica.git use scrollToItem instead of own function rename isanswerto and "Is answer to" to isreplyto and "is reply to" --- diff --git a/src/Object/Post.php b/src/Object/Post.php index 77912c7b85..a3063cbe13 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -498,7 +498,7 @@ class Post $tmp_item = [ 'parentguid' => $parent_guid, - 'isanswerto' => DI::l10n()->t('is answer to %s', $parent_username), + 'isreplyto' => DI::l10n()->t('is reply to %s', $parent_username), 'template' => $this->getTemplate(), 'type' => implode('', array_slice(explode('/', $item['verb']), -1)), 'comment_firstcollapsed' => false, diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index 733752cfd9..ef71b8c1d0 100644 --- a/view/theme/frio/js/theme.js +++ b/view/theme/frio/js/theme.js @@ -184,7 +184,6 @@ $(document).ready(function () { if (typeof searchValue !== "undefined") { $("#nav-search-input-field").val(searchValue); } - } // move the "Save the search" button to the second navbar @@ -942,13 +941,4 @@ function toggleDropdownText(elm) { function hasClass(elem, cls) { return (" " + elem.className + " ").indexOf(" " + cls + " ") > -1; } - -// Go to parent for "is answer to " link in comments below username -function goToParentItem(plink, pguid) { - history.pushState({},"",plink); - var loc = plink.split("/"); - loc.pop(); - loc.push(pguid); - location.href = loc.join("/"); -} // @license-end diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index f05a41f032..93abcd2fd7 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -60,7 +60,7 @@ as the value of $top_child_total (this is done at the end of this file) {{/if}}
{{if $item.parentguid}} - {{$item.isanswerto}} + {{$item.isreplyto}} {{if $item.reshared}}{{/if}}
{{/if}}