From 7eb23aa8b8d161a74ea59bc4c6eef5357fe6b1c0 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 2 Aug 2024 15:08:27 +0000 Subject: fa2bi fixes --- Zotlabs/Lib/ThreadItem.php | 2 +- include/js_strings.php | 8 ++++---- view/js/main.js | 4 ++-- view/tpl/conv_item.tpl | 2 +- view/tpl/conv_list.tpl | 9 --------- view/tpl/direntry.tpl | 2 +- 6 files changed, 9 insertions(+), 18 deletions(-) diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index bca5aa047..ae3422526 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -573,7 +573,7 @@ class ThreadItem { if(($nb_children > $visible_comments) || ($thread_level > 1)) { $result['children'][0]['comment_firstcollapsed'] = true; $result['children'][0]['num_comments'] = $comment_count_txt['label']; - $result['children'][0]['hide_text'] = sprintf( t('%s show all'), ''); + $result['children'][0]['hide_text'] = sprintf( t('%s show all'), ''); if($thread_level > 1) { $result['children'][$nb_children - 1]['comment_lastcollapsed'] = true; } diff --git a/include/js_strings.php b/include/js_strings.php index 6226b51c6..cbc94bb08 100644 --- a/include/js_strings.php +++ b/include/js_strings.php @@ -5,10 +5,10 @@ function js_strings() { '$delitem' => t('Delete this item?'), '$itemdel' => t('Item deleted'), '$comment' => t('Comment'), - '$showmore' => sprintf( t('%s show all'), ''), - '$showfewer' => sprintf( t('%s show less'), ''), - '$divgrowmore' => sprintf( t('%s expand'), ''), - '$divgrowless' => sprintf( t('%s collapse'),''), + '$showmore' => sprintf( t('%s show all'), ''), + '$showfewer' => sprintf( t('%s show less'), ''), + '$divgrowmore' => sprintf( t('%s expand'), ''), + '$divgrowless' => sprintf( t('%s collapse'),''), '$pwshort' => t("Password too short"), '$pwnomatch' => t("Passwords do not match"), '$everybody' => t('everybody'), diff --git a/view/js/main.js b/view/js/main.js index ee07e2733..ab87b4bda 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -868,8 +868,8 @@ function collapseHeight() { startOpen: open, heightMargin: 50, collapsedHeight: divmore_height, - moreLink: '' + aStr.divgrowmore + '', - lessLink: '' + aStr.divgrowless + '', + moreLink: '' + aStr.divgrowmore + '', + lessLink: '' + aStr.divgrowless + '', beforeToggle: function(trigger, element, expanded) { if(expanded) { if((($(element).offset().top + divmore_height) - $(window).scrollTop()) < 65 ) { diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index ccbd89ffa..b0077e09b 100644 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -1,5 +1,5 @@ {{if $item.comment_firstcollapsed}} - -

{{if $entry.public_forum}} {{/if}}{{$entry.name}}{{if $entry.online}} {{/if}}

+

{{if $entry.public_forum}} {{/if}}{{$entry.name}}{{if $entry.online}} {{/if}}

-- cgit v1.2.3