diff options
| author | qsm-odoo <qsm@odoo.com> | 2016-07-04 10:57:32 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2016-07-04 16:40:27 +0200 |
| commit | 91a2881ca115489891c3ad8dd98860aa459c6895 (patch) | |
| tree | 5b5ddf3ca0092f2c396c1a7fac66da476fe99c77 /addons/web_editor/static/src/xml/editor.xml | |
| parent | 53fe7e9fa60c287f4bf8c6d4b70a054038bb8aac (diff) | |
[FIX] web_tour: tours for mobile mode
Before this commit, tours were disabled for mobile mode by returning
an undefined value in the web_tour.tour JS module. This made the use
of "tour.register" or "tour.run" crash, thus making the runbot go red
if this happened while phamtomJS was running.
As it happened, some of the frontend tours goes by "preview the site
on mobile mode" which then trigger this JS crash.
This commit makes the web_tour.tour module return a fake tour object
with a register method which does nothing and a run method which
warns the user that tours cannot be launched in mobile mode.
Diffstat (limited to 'addons/web_editor/static/src/xml/editor.xml')
0 files changed, 0 insertions, 0 deletions
