mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
Fix jquery timeago update did not really work
This commit is contained in:
parent
e830805443
commit
5a13cb5ffe
@ -71,7 +71,12 @@ if (window.localStorage.getItem("sidebar_state") === "collapsed")
|
||||
$.timeago.settings.allowFuture = true;
|
||||
RefreshContextualTimeago = function()
|
||||
{
|
||||
$('time.timeago').timeago();
|
||||
$("time.timeago").each(function()
|
||||
{
|
||||
var element = $(this);
|
||||
var timestamp = element.attr("datetime");
|
||||
element.timeago("update", timestamp);
|
||||
});
|
||||
}
|
||||
RefreshContextualTimeago();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user