From a82127092bd06e30e23c811fced5f3d4ddf2b24a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Thu, 5 Oct 2023 17:19:16 +0200 Subject: [PATCH] use scrollToItem instead of own function rename isanswerto and "Is answer to" to isreplyto and "is reply to" --- src/Object/Post.php | 2 +- view/theme/frio/js/theme.js | 10 ---------- view/theme/frio/templates/wall_thread.tpl | 2 +- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/Object/Post.php b/src/Object/Post.php index 77912c7b8..a3063cbe1 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 733752cfd..ef71b8c1d 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 f05a41f03..93abcd2fd 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}}