mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 20:26:42 +00:00
Apply table filters on /tasks load (fixes #2660)
This commit is contained in:
@@ -299,22 +299,22 @@ RefreshContextualTimeago = function(rootSelector = "#page-content")
|
||||
|
||||
if (!element.hasAttr("datetime"))
|
||||
{
|
||||
element.text("")
|
||||
return
|
||||
element.text("");
|
||||
return;
|
||||
}
|
||||
|
||||
var timestamp = element.attr("datetime");
|
||||
|
||||
if (!timestamp || timestamp.length < 10)
|
||||
{
|
||||
element.text("")
|
||||
return
|
||||
element.text("");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!moment(timestamp).isValid())
|
||||
{
|
||||
element.text("")
|
||||
return
|
||||
element.text("");
|
||||
return;
|
||||
}
|
||||
|
||||
var isNever = timestamp && timestamp.substring(0, 10) == "2999-12-31";
|
||||
|
Reference in New Issue
Block a user