diff --git a/UI/WebServerResources/js/Scheduler/sgCalendarMonthDay.directive.js b/UI/WebServerResources/js/Scheduler/sgCalendarMonthDay.directive.js index 9195e2d64..50665735a 100644 --- a/UI/WebServerResources/js/Scheduler/sgCalendarMonthDay.directive.js +++ b/UI/WebServerResources/js/Scheduler/sgCalendarMonthDay.directive.js @@ -5,11 +5,14 @@ /* * sgCalendarMonthDay - Build list of blocks for a specific day in a month - * @memberof SOGo.Common + * @memberof SOGo.SchedulerUI * @restrict element * @param {object} sgBlocks - the events blocks definitions for the current view * @param {string} sgDay - the day of the events to display - * @ngInject + * @param {function} sgClick - the function to call when clicking on a block. + * Two variables are available: event (the event that triggered the mouse click), + * and component (a Component object) + * * @example: 6) - coordinates.x = 6; - coordinates.x += 7 * daysY; + else if (coordinates.x > maxX) + coordinates.x = maxX; + coordinates.x += (maxX + 1) * daysY; coordinates.y = 0; } else {