1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00

fix display alter when exchanging events if tag missmatch

This commit is contained in:
Sylvain 2017-02-21 17:44:27 +01:00
parent 9b2ba8528f
commit 86371a42df

View File

@ -172,6 +172,20 @@ Application.Directives.directive 'cart', [ '$rootScope', '$uibModal', 'dialogs',
$scope.events.modifiable = null
uiCalendarConfig.calendars.calendar.fullCalendar 'rerenderEvents'
##
# Checks if $scope.events.modifiable and $scope.events.placable have tag incompatibilities
# @returns {boolean} true in case of incompatibility
##
$scope.tagMissmatch = ->
for tag in $scope.events.modifiable.tags
if tag.id not in $scope.events.placable.tag_ids
return true
false
### PRIVATE SCOPE ###
##