$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,
if (typeof searchValue !== "undefined") {
$("#nav-search-input-field").val(searchValue);
}
-
}
// move the "Save the search" button to the second navbar
function hasClass(elem, cls) {
return (" " + elem.className + " ").indexOf(" " + cls + " ") > -1;
}
-
-// Go to parent for "is answer to <user>" 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
{{/if}}
<div class="media {{$item.shiny}}">
{{if $item.parentguid}}
- <a id="btn-{{$item.id}}" class="time" href="javascript:;" onclick="goToParentItem('{{$item.plink.orig}}', '{{$item.parentguid}}');">{{$item.isanswerto}}</a>
+ <a id="btn-{{$item.id}}" class="time" href="javascript:;" onclick="scrollToItem('item-' + '{{$item.parentguid}}');">{{$item.isreplyto}}</a>
{{if $item.reshared}}<span class="hidden-xs">•</span>{{/if}}
<br class="visible-xs">
{{/if}}