Issue 8605: "show less" now displays "show less"

This commit is contained in:
Michael 2020-11-30 19:30:57 +00:00
parent 5b19469a4c
commit d4d55a5865
5 changed files with 6764 additions and 6737 deletions

View file

@ -147,6 +147,7 @@ class ForumManager
'$link_desc' => DI::l10n()->t('External link to forum'), '$link_desc' => DI::l10n()->t('External link to forum'),
'$total' => $total, '$total' => $total,
'$visible_forums' => $visible_forums, '$visible_forums' => $visible_forums,
'$showless' => DI::l10n()->t('show less'),
'$showmore' => DI::l10n()->t('show more')] '$showmore' => DI::l10n()->t('show more')]
); );
} }

File diff suppressed because it is too large Load diff

View file

@ -2,12 +2,12 @@
function showHideForumlist() { function showHideForumlist() {
if( $("li[id^='forum-widget-entry-extended-']").is(':visible')) { if( $("li[id^='forum-widget-entry-extended-']").is(':visible')) {
$("li[id^='forum-widget-entry-extended-']").hide(); $("li[id^='forum-widget-entry-extended-']").hide();
$("li#forum-widget-collapse").html(window.showMore); $("li#forum-widget-collapse").html('{{$showmore}}');
} }
else { else {
$("li[id^='forum-widget-entry-extended-']").show(); $("li[id^='forum-widget-entry-extended-']").show();
$("li#forum-widget-collapse").html(window.showFewer); $("li#forum-widget-collapse").html('{{$showless}}');
} }
} }
</script> </script>

View file

@ -3,12 +3,12 @@
function showHideForumlist() { function showHideForumlist() {
if( $("li[id^='forum-widget-entry-extended-']").is(':visible')) { if( $("li[id^='forum-widget-entry-extended-']").is(':visible')) {
$("li[id^='forum-widget-entry-extended-']").hide(); $("li[id^='forum-widget-entry-extended-']").hide();
$("li#forum-widget-collapse").html(window.showMore); $("li#forum-widget-collapse").html('{{$showmore}}');
} }
else { else {
$("li[id^='forum-widget-entry-extended-']").show(); $("li[id^='forum-widget-entry-extended-']").show();
$("li#forum-widget-collapse").html(window.showFewer); $("li#forum-widget-collapse").html('{{$showless}}');
} }
} }
</script> </script>

View file

@ -3,14 +3,15 @@
function showHideForumlist() { function showHideForumlist() {
if( $("li[id^='forum-widget-entry-extended-']").is(':visible')) { if( $("li[id^='forum-widget-entry-extended-']").is(':visible')) {
$("li[id^='forum-widget-entry-extended-']").hide(); $("li[id^='forum-widget-entry-extended-']").hide();
$("li#forum-widget-collapse").html(window.showMore); $("li#forum-widget-collapse").html('{{$showmore}}');
} }
else { else {
$("li[id^='forum-widget-entry-extended-']").show(); $("li[id^='forum-widget-entry-extended-']").show();
$("li#forum-widget-collapse").html(window.showFewer); $("li#forum-widget-collapse").html('{{$showless}}');
} }
} }
</script> </script>
<div id="forumlist-sidebar-right" class="widget"> <div id="forumlist-sidebar-right" class="widget">