From 9d97ef1027fe8b844fa5c72fbc63ddc3a24a0bc6 Mon Sep 17 00:00:00 2001 From: Jason Gerlowski Date: Sat, 27 Apr 2019 10:12:31 -0400 Subject: [PATCH] SOLR-13343: Fix minor web UI spacing issue Closes #592 --- solr/CHANGES.txt | 2 ++ solr/webapp/web/libs/ngtimeago.js | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 0073182dc80..7ba39678d2d 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -220,6 +220,8 @@ Bug Fixes * SOLR-13081: In-Place Update doesn't work with route.field (Dr Oleg Savrasov via Mikhail Khludnev) +* SOLR-13343: Fix spacing issue in browser log (Marcus Eagan via Jason Gerlowski) + Improvements ---------------------- diff --git a/solr/webapp/web/libs/ngtimeago.js b/solr/webapp/web/libs/ngtimeago.js index f98b2160a99..5592402f3d8 100644 --- a/solr/webapp/web/libs/ngtimeago.js +++ b/solr/webapp/web/libs/ngtimeago.js @@ -42,7 +42,7 @@ catalyst.filter('timeago', function() { //refreshMillis= 6e4, //A minute allowFuture = p_allowFuture || false, strings= { - prefixAgo: '', + prefixAgo: ' ', prefixFromNow: '', suffixAgo: "ago", suffixFromNow: "from now", @@ -89,12 +89,11 @@ catalyst.filter('timeago', function() { days < 365 && substitute(strings.months, Math.round(days / 30), strings) || years < 1.5 && substitute(strings.year, 1, strings) || substitute(strings.years, Math.round(years), strings); - console.log(prefix+words+suffix+separator); + console.log(words+" "+prefix+suffix); prefix.replace(/ /g, '') words.replace(/ /g, '') suffix.replace(/ /g, '') - return (prefix+' '+words+' '+suffix+' '+separator); - + return (prefix+' '+words+' '+suffix+' '+separator); }; });