diff options
| author | Xavier Morel <xmo@odoo.com> | 2015-03-10 17:22:35 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2015-03-20 16:34:42 +0100 |
| commit | 4b0a8d4096be411b1516f8f89ea3d9950b167cf0 (patch) | |
| tree | 349e869a9e9083bb52652fddae092eae1cbb1fb8 /addons/web/static/src/js/control_panel.js | |
| parent | 258673fb314ab1a361c7d9148e190e1b7185ab8b (diff) | |
[IMP] Web, web_calendar: push_state rendering logic
When a new state is rendered, it is now first appended to a
documentFragment, and then appended to the DOM when ready. Doing so,
there is no more a intermediate step where two widgets are in the DOM,
the new one being appended below.
This required a web_calendar fix:
Not exactly fixed per-se, apparently when fullcalendar is rendered
hidden/out of document it doesn't generate correct range dates, and
calls the events callback with invalid dates. The code would blindly
take those invalid date, get bits out of them (NaN), generate a
timestamp full of NaNs and blindly search() the table with that.
Just skip the events callback entirely if the start or end date of the
current period is invalid (~isNaN(date.valueOf())).
Diffstat (limited to 'addons/web/static/src/js/control_panel.js')
0 files changed, 0 insertions, 0 deletions
