Skip to content

Apache Lucene open-source search software

SOLR-13343: Fix minor web UI spacing issue

Jason Gerlowski9d97ef1027fe
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);
};
});