From d7d88459d7c399e5e0161aeb50b07974a2f9e3b0 Mon Sep 17 00:00:00 2001 From: Michael Haschke Date: Wed, 14 Sep 2011 11:18:07 +0300 Subject: [PATCH] [mod] improving typography: enabling usage of non-breaking-space character ( ), this is important to prevent a line break between the number and the timeframe --- jquery.timeago.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/jquery.timeago.js b/jquery.timeago.js index 9fcf4811..1ac1b908 100644 --- a/jquery.timeago.js +++ b/jquery.timeago.js @@ -36,15 +36,15 @@ suffixFromNow: "from now", seconds: "less than a minute", minute: "about a minute", - minutes: "%d minutes", + minutes: "%d minutes", hour: "about an hour", - hours: "about %d hours", + hours: "about %d hours", day: "a day", - days: "%d days", + days: "%d days", month: "about a month", - months: "%d months", + months: "%d months", year: "about a year", - years: "%d years", + years: "%d years", numbers: [] } }, @@ -116,7 +116,7 @@ function refresh() { var data = prepareData(this); if (!isNaN(data.datetime)) { - $(this).text(inWords(data.datetime)); + $(this).html(inWords(data.datetime)); } return this; }