]> git.mxchange.org Git - friendica.git/commitdiff
Another place found where "show less" had been "show more"
authorMichael <heluecht@pirati.ca>
Mon, 30 Nov 2020 19:52:57 +0000 (19:52 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 30 Nov 2020 19:52:57 +0000 (19:52 +0000)
src/Content/Widget.php
view/templates/widget/posted_date.tpl

index e18f70631dc826b1913f851e075940a8dca90c54..98bd78eceb1c5e0d20ec18be3da38901518af228 100644 (file)
@@ -516,6 +516,7 @@ class Widget
                        '$cutoff' => $cutoff,
                        '$url' => $url,
                        '$dates' => $ret,
+                       '$showless'     => DI::l10n()->t('show less'),
                        '$showmore' => DI::l10n()->t('show more')
                ]);
 
index 0d5490d98f4b6046ac3a0657dad8ab9847d50021..ad40bcb0223c22aae028ca1e3fcf2824968b5289 100644 (file)
@@ -2,11 +2,11 @@
 function showHideDates() {
        if( $('#posted-date-selector-drop').is(':visible')) {
                $('#posted-date-selector-drop').hide();
-               $('#posted-date-collapse').html(window.showMore);
+               $('#posted-date-collapse').html('{{$showmore}}');
 
        } else {
                $('#posted-date-selector-drop').show();
-               $('#posted-date-collapse').html(window.showFewer);
+               $('#posted-date-collapse').html('{{$showless}}');
        }
 }
 </script>