Added support for future timestamps ... "from now"
This commit is contained in:
parent
38c11a164a
commit
1f7b391782
3 changed files with 18 additions and 3 deletions
|
@ -109,6 +109,12 @@ jQuery.timeago(new Date()); //=> "<span id="prog_date"></span>&
|
|||
jQuery.timeago("2008-07-17"); //=> "<span id="prog_string"></span>"
|
||||
jQuery.timeago(jQuery("abbr#some_id")); //=> "<span id="prog_element"></span>" // [title="2008-07-20"]</pre>
|
||||
|
||||
<p class="how">
|
||||
To support timestamps in the future, use the <tt>allowFuture</tt> setting:
|
||||
</p>
|
||||
<pre>
|
||||
jQuery.timeago.settings.allowFuture = true;</pre>
|
||||
|
||||
<h3>Where?</h3>
|
||||
<p><a href="jquery.timeago.js">Download the "stable" release</a>.</p>
|
||||
<p>
|
||||
|
|
Reference in a new issue