mirror of
https://github.com/scratchfoundation/jquery-timeago.git
synced 2024-11-23 15:57:54 -05:00
Merge pull request #183 from Nyholm/patch-1
Fixed bug with cutoff and allowFuture
This commit is contained in:
commit
dd17e5598f
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@
|
||||||
var $s = $t.settings;
|
var $s = $t.settings;
|
||||||
|
|
||||||
if (!isNaN(data.datetime)) {
|
if (!isNaN(data.datetime)) {
|
||||||
if ( $s.cutoff == 0 || distance(data.datetime) < $s.cutoff) {
|
if ( $s.cutoff == 0 || Math.abs(distance(data.datetime)) < $s.cutoff) {
|
||||||
$(this).text(inWords(data.datetime));
|
$(this).text(inWords(data.datetime));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue