SOLR-13343: Fix minor web UI spacing issue

Closes #592
This commit is contained in:
Jason Gerlowski 2019-04-27 10:12:31 -04:00
parent 35aeb7f623
commit 9d97ef1027
2 changed files with 5 additions and 4 deletions

View File

@ -220,6 +220,8 @@ Bug Fixes
* SOLR-13081: In-Place Update doesn't work with route.field (Dr Oleg Savrasov via Mikhail Khludnev) * 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 Improvements
---------------------- ----------------------

View File

@ -42,7 +42,7 @@ catalyst.filter('timeago', function() {
//refreshMillis= 6e4, //A minute //refreshMillis= 6e4, //A minute
allowFuture = p_allowFuture || false, allowFuture = p_allowFuture || false,
strings= { strings= {
prefixAgo: '', prefixAgo: ' ',
prefixFromNow: '', prefixFromNow: '',
suffixAgo: "ago", suffixAgo: "ago",
suffixFromNow: "from now", suffixFromNow: "from now",
@ -89,12 +89,11 @@ catalyst.filter('timeago', function() {
days < 365 && substitute(strings.months, Math.round(days / 30), strings) || days < 365 && substitute(strings.months, Math.round(days / 30), strings) ||
years < 1.5 && substitute(strings.year, 1, strings) || years < 1.5 && substitute(strings.year, 1, strings) ||
substitute(strings.years, Math.round(years), strings); substitute(strings.years, Math.round(years), strings);
console.log(prefix+words+suffix+separator); console.log(words+" "+prefix+suffix);
prefix.replace(/ /g, '') prefix.replace(/ /g, '')
words.replace(/ /g, '') words.replace(/ /g, '')
suffix.replace(/ /g, '') suffix.replace(/ /g, '')
return (prefix+' '+words+' '+suffix+' '+separator); return (prefix+' '+words+' '+suffix+' '+separator);
}; };
}); });