mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
fix bug with wrapping
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user