Commit c5f61c21 authored by Ujvari Gergely's avatar Ujvari Gergely Committed by Randall Leeds

Jquery.ui.tooltip generates fuzzytime tooltip

parent 61c7d58f
......@@ -360,6 +360,16 @@ fuzzytime = ['$filter', '$window', ($filter, $window) ->
link: (scope, elem, attr, ctrl) ->
return unless ctrl?
elem
.find('a')
.bind 'click', (event) ->
event.stopPropagation()
.tooltip
tooltipClass: 'small'
position:
collision: 'fit'
at: "left center"
ctrl.$render = ->
scope.ftime = ($filter 'fuzzyTime') ctrl.$viewValue
......@@ -379,6 +389,15 @@ fuzzytime = ['$filter', '$window', ($filter, $window) ->
# For invalid timezone, use the default
scope.hint = momentDate.format('LLLL')
toolparams =
tooltipClass: 'small'
position:
collision: 'none'
at: "left center"
elem.tooltip(toolparams)
timefunct = ->
$window.setInterval =>
scope.ftime = ($filter 'fuzzyTime') ctrl.$viewValue
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment