diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-06-09 17:38:49 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2017-06-15 15:47:04 +0300 |
commit | d9238ee6c0a0bea45b82638d04a913441344ffcf (patch) | |
tree | ce520d3b4ba597909baea9d23e10dd21c050fa29 /app/assets/javascripts/lib | |
parent | fc7cb8d1168a1304716cd9d63a7590362e873b31 (diff) |
Translate time tooltips.
Let the backend do the translation.
Diffstat (limited to 'app/assets/javascripts/lib')
-rw-r--r-- | app/assets/javascripts/lib/utils/datetime_utility.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/lib/utils/datetime_utility.js b/app/assets/javascripts/lib/utils/datetime_utility.js index 54c0da3fc9c..bfcc50996cc 100644 --- a/app/assets/javascripts/lib/utils/datetime_utility.js +++ b/app/assets/javascripts/lib/utils/datetime_utility.js @@ -34,7 +34,7 @@ window.dateFormat = dateFormat; w.gl.utils.localTimeAgo = function($timeagoEls, setTimeago = true) { $timeagoEls.each((i, el) => { - el.setAttribute('title', gl.utils.formatDate(el.getAttribute('datetime'))); + el.setAttribute('title', el.getAttribute('title')); if (setTimeago) { // Recreate with custom template |