time_ago_with_tooltip javascript snippet: Don't reinitialize older elements
see bug #3758
This commit is contained in:
parent
76b2250c60
commit
86ed2e43d5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue