mirror of https://github.com/apache/lucene.git
parent
35aeb7f623
commit
9d97ef1027
|
@ -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
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue