From 8789db67b37e08a7ca75c4be98334f6c61d6aeb7 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Fri, 6 May 2016 15:45:42 -0400 Subject: [PATCH] (js) Fix drag'n'drop in month view --- .../js/Scheduler/sgCalendarMonthDay.directive.js | 7 +++++-- .../js/Scheduler/sgCalendarScrollView.directive.js | 10 +++++++--- .../js/Scheduler/sgDraggableCalendarBlock.directive.js | 7 ++++--- 3 files changed, 16 insertions(+), 8 deletions(-) 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 {