Merge lp:~openerp-dev/openerp-web/7.0-opw-606297-msh into lp:openerp-web/7.0
Status: | Merged |
---|---|
Merge reported by: | Mohammed Shekha(Open ERP) |
Merged at revision: | not available |
Proposed branch: | lp:~openerp-dev/openerp-web/7.0-opw-606297-msh |
Merge into: | lp:openerp-web/7.0 |
Diff against target: |
33 lines (+9/-0) 1 file modified
addons/web_calendar/static/src/js/calendar.js (+9/-0) |
To merge this branch: | bzr merge lp:~openerp-dev/openerp-web/7.0-opw-606297-msh |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Naresh(OpenERP) | Pending | ||
Martin Trigaux (OpenERP) | Pending | ||
Review via email: mp+218810@code.launchpad.net |
Description of the change
Hello,
Fixed the issue of calendar popup opens twice in chrome due to two event fires when one try to create multi day event using drag on month mode, onBeforeLightbox as well as click(which eventually trigger onEmptyClick).
Demo:- Run OpenERP with Chrome 33... or 34... and then just go to Calendar view say for example Human Resources -> Leaves -> Leave Requests and then in calendar view, create multi day leave by dragging mouse on two days in month mode.
You will notice that two popups created, instead of one.
Reason: When we drag mouse so dhtmlx scheduler will call onBeforeLightbox from Lightbox but Chrome also triggers click event(eventually onEmptyClick fired) when mouse is released.
Fixed it using workaround flag.
Thanks.