mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:55:13 +00:00
activate timeago for pinned posts
This commit is contained in:
parent
651b6b79a2
commit
470dde6a84
2 changed files with 2 additions and 3 deletions
|
@ -45,6 +45,7 @@ class Pinned {
|
|||
$o = str_replace('<div id="threads-end">','<div id="pins-end">', $o);
|
||||
$o = str_replace('<div id="conversation-end">','<div id="pin-widget-end">', $o);
|
||||
$o = str_replace('class="thread-wrapper ','class="pin-thread-wrapper ', $o);
|
||||
$o = str_replace('class="wall-item-ago','class="wall-item-ago pinned', $o);
|
||||
|
||||
// logger('output: ' . $o);
|
||||
return '<hr>' . $o . '<hr>';
|
||||
|
|
|
@ -823,11 +823,9 @@ function updateConvItems(mode,data) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// trigger the autotime function on all newly created content
|
||||
|
||||
$("> .pin-thread-wrapper .autotime",this).timeago();
|
||||
$(".pinned .autotime").timeago();
|
||||
$("> .wall-item-outside-wrapper .autotime, > .thread-wrapper .autotime",this).timeago();
|
||||
$("> .shared_header .autotime",this).timeago();
|
||||
|
||||
|
|
Loading…
Reference in a new issue