1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

hide popup of training description

This commit is contained in:
Peng DU 2016-07-18 17:51:49 +02:00
parent 120df2e716
commit 38bf35d06f
2 changed files with 7 additions and 6 deletions

View File

@ -452,11 +452,12 @@ Application.Controllers.controller "ReserveTrainingController", ["$scope", "$sta
# @see http://fullcalendar.io/docs/event_rendering/eventRender/
##
eventRenderCb = (event, element, view)->
element.attr(
'uib-popover': $filter('humanize')($filter('simpleText')(event.training.description), 70)
'popover-trigger': 'mouseenter'
)
$compile(element)($scope)
# Comment these codes for show a popup of description, because we add feature page of training
#element.attr(
# 'uib-popover': $filter('humanize')($filter('simpleText')(event.training.description), 70)
# 'popover-trigger': 'mouseenter'
#)
#$compile(element)($scope)

View File

@ -112,7 +112,7 @@ Application.Filters.filter "breakFilter", [ ->
##
Application.Filters.filter "simpleText", [ ->
(text) ->
if text != undefined
if text?
text = text.replace(/<br\s*\/?>/g, '\n')
text.replace(/<\/?\w+[^>]*>/g, '')
else