Fixes #3850 - If no date is set the UI show it's shown as NaN.NaN.NaN.
This commit is contained in:
parent
36a662fff7
commit
a77594d5bb
1 changed files with 2 additions and 1 deletions
|
@ -300,9 +300,10 @@ class App.Controller extends Spine.Controller
|
||||||
|
|
||||||
frontendTimeUpdateItem: (item, currentVal) =>
|
frontendTimeUpdateItem: (item, currentVal) =>
|
||||||
timestamp = item.attr('datetime')
|
timestamp = item.attr('datetime')
|
||||||
time = @humanTime(timestamp, item.hasClass('escalation'))
|
return if timestamp is 'null'
|
||||||
|
|
||||||
# only do dom updates on changes
|
# only do dom updates on changes
|
||||||
|
time = @humanTime(timestamp, item.hasClass('escalation'))
|
||||||
return if time is currentVal
|
return if time is currentVal
|
||||||
|
|
||||||
newTitle = App.i18n.translateTimestamp(timestamp)
|
newTitle = App.i18n.translateTimestamp(timestamp)
|
||||||
|
|
Loading…
Reference in a new issue