From eed5875505edb5ac9396062d9bd53846d5a7aa98 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 11 Jun 2013 06:51:02 +1000 Subject: [PATCH] fix bug with wrapping --- app/assets/javascripts/discourse/components/formatter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/formatter.js b/app/assets/javascripts/discourse/components/formatter.js index 43082ddc75e..3047722df1b 100644 --- a/app/assets/javascripts/discourse/components/formatter.js +++ b/app/assets/javascripts/discourse/components/formatter.js @@ -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);