Skip to content

Commit eb5ce16

Browse files
authored
Merge pull request #284 from julmis/master
Return original time string from title attribute if it is set
2 parents 15096db + 9421e72 commit eb5ce16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jquery.timeago.js

+4
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@
192192
if (!isNaN(data.datetime)) {
193193
if ( $s.cutoff == 0 || Math.abs(distance(data.datetime)) < $s.cutoff) {
194194
$(this).text(inWords(data.datetime));
195+
} else {
196+
if ($(this).attr('title').length > 0) {
197+
$(this).text($(this).attr('title'));
198+
}
195199
}
196200
}
197201
return this;

0 commit comments

Comments
 (0)