diff options
author | Phillip Berndt <phillip.berndt@googlemail.com> | 2015-12-03 16:04:39 +0100 |
---|---|---|
committer | Phillip Berndt <phillip.berndt@googlemail.com> | 2015-12-03 16:04:39 +0100 |
commit | 86ed2e43d58ef074ae3b1d80e0b18fe338ca9afd (patch) | |
tree | 875035556fb694ff8378f74a08e4da0152d53a1b | |
parent | 76b2250c60c410121cccaea584ca5345fa30e69b (diff) | |
download | gitlab-ce-86ed2e43d58ef074ae3b1d80e0b18fe338ca9afd.tar.gz |
time_ago_with_tooltip javascript snippet: Don't reinitialize older elements
see bug #3758
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3230ff1b004..21f962df206 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -209,7 +209,7 @@ module ApplicationHelper title: time.in_time_zone.stamp('Aug 21, 2011 9:23pm'), data: { toggle: 'tooltip', placement: placement, container: 'body' } - element += javascript_tag "$('.js-timeago').timeago()" unless skip_js + element += javascript_tag "$('.js-timeago').last().timeago()" unless skip_js element end |