summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/lib/datetime_utility.js.coffee
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-06-13 12:43:25 +0200
committerJames Lopez <james@jameslopez.es>2016-06-13 12:43:25 +0200
commitad68bc63b5e7e8080e82d9febec05397c802d33d (patch)
treed9508d5bd96c8087d13b88051637bb442e877659 /app/assets/javascripts/lib/datetime_utility.js.coffee
parent41c06c311b9c5642f6056d0b34030980ebf507b3 (diff)
parentcc322603945816ed957da7c0efa56e2ef1016569 (diff)
downloadgitlab-ce-ad68bc63b5e7e8080e82d9febec05397c802d33d.tar.gz
Merge branches 'feature/project-export' and 'feature/project-import' of gitlab.com:gitlab-org/gitlab-ce into feature/project-import
# Conflicts: # app/models/project.rb # db/schema.rb # lib/gitlab/import_export/import_export_reader.rb
Diffstat (limited to 'app/assets/javascripts/lib/datetime_utility.js.coffee')
-rw-r--r--app/assets/javascripts/lib/datetime_utility.js.coffee9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/assets/javascripts/lib/datetime_utility.js.coffee b/app/assets/javascripts/lib/datetime_utility.js.coffee
index ad1d1c70481..948d6dbf07e 100644
--- a/app/assets/javascripts/lib/datetime_utility.js.coffee
+++ b/app/assets/javascripts/lib/datetime_utility.js.coffee
@@ -12,6 +12,13 @@
$el.attr('title', gl.utils.formatDate($el.attr('datetime')))
)
- $timeagoEls.timeago() if setTimeago
+ if setTimeago
+ $timeagoEls.timeago()
+ $timeagoEls.tooltip('destroy')
+
+ # Recreate with custom template
+ $timeagoEls.tooltip(
+ template: '<div class="tooltip local-timeago" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
+ )
) window