summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorjbm-odoo <jbm@odoo.com>2019-09-24 08:03:35 +0000
committerfw-bot <otis@odoo.com>2019-10-10 11:58:07 +0000
commit6a2179fafc625337578f03033a03103c99f4e08d (patch)
tree4f92f6c9b66fe4730df7c6a7c0872c6ebb610cfe /addons
parentf520ee8f7b7b13e7a9ee8ed053adb64435b42238 (diff)
[IMP] web calendar: Keep width box while drag or resize
When there are many events at the same moment in a calendar, events are thin and on mouse hover the event take all the width. Before this commit, when we drag or we resize a event in calendar, the event returns to the state thin. After this commit, the width event stay width during resizing and draging. closes odoo/odoo#38384 X-original-commit: 405294602070590083a2b438f631615f72000292 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/web/static/src/js/views/calendar/calendar_renderer.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/web/static/src/js/views/calendar/calendar_renderer.js b/addons/web/static/src/js/views/calendar/calendar_renderer.js
index b28d0622094..597f20d8239 100644
--- a/addons/web/static/src/js/views/calendar/calendar_renderer.js
+++ b/addons/web/static/src/js/views/calendar/calendar_renderer.js
@@ -459,10 +459,12 @@ return AbstractRenderer.extend({
eventMouseout: function (eventData) {
self.$calendar.find(_.str.sprintf('[data-event-id=%s]', eventData.id)).removeClass('o_cw_custom_hover');
},
- eventDragStart: function () {
+ eventDragStart: function (eventData) {
+ self.$calendar.find(_.str.sprintf('[data-event-id=%s]', eventData.id)).addClass('o_cw_custom_hover');
self._unselectEvent();
},
- eventResizeStart: function () {
+ eventResizeStart: function (eventData) {
+ self.$calendar.find(_.str.sprintf('[data-event-id=%s]', eventData.id)).addClass('o_cw_custom_hover');
self._unselectEvent();
},
eventLimitClick: function () {