Skip to content

Commit

Permalink
Allow timeago to have future timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Nov 26, 2020
1 parent 2beb050 commit 9bcb727
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ See [Upgrading] for details on how to upgrade.
- Avoid calling imap methods on null, #968
- Wrap large code blocks in note and email view, #969
- Add Request context to LinkFilter callbacks, #970
- Allow timeago to have future timestamps, #971

[3.9.8]: https://github.com/eventum/eventum/compare/v3.9.7...master

Expand Down
2 changes: 2 additions & 0 deletions res/assets/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ $(document).ready(function () {
mermaid.initialize({startOnLoad:true});

// jquery timeago
jQuery.timeago.settings.allowFuture = true;

const $timeago = $("time.timeago");
// on click toggle between views
const timeago_toggle = function () {
Expand Down

0 comments on commit 9bcb727

Please sign in to comment.