mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
fix bug with wrapping
This commit is contained in:
parent
a92bb46966
commit
eed5875505
@ -103,7 +103,7 @@ Discourse.Formatter = (function(){
|
||||
|
||||
relativeAgeMedium = function(date, options){
|
||||
var displayDate, fiveDaysAgo, oneMinuteAgo, fullReadable, leaveAgo, val;
|
||||
var wrapInSpan = options.wrapInSpan ? true : false;
|
||||
var wrapInSpan = options.wrapInSpan === false ? false : true;
|
||||
|
||||
leaveAgo = options.leaveAgo;
|
||||
var distance = Math.round((new Date() - date) / 1000);
|
||||
|
Loading…
Reference in New Issue
Block a user