diff options
| author | qsm-odoo <qsm@odoo.com> | 2016-09-30 11:33:17 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2016-09-30 12:19:46 +0200 |
| commit | 3cbc7ebc4c3e0edb25d1a91dcbf4df163ef6d29e (patch) | |
| tree | d4c57cf880e39d2402bb75b63868010a63d1b235 /addons/website/static/src | |
| parent | 984afdf120718a71b6b38a010c87d0b1bc44baf7 (diff) | |
[FIX] *: missing base.ready() waiting for frontend tours
Frontend tours have to wait for base.ready() before starting otherwise
they can find DOM elements whose event handlers have not been attached
yet.
Note that this is a workaround to ignore these real "bugs" as users
should not be able to see buttons they can't click at once but there is
no safe and small fix which will resolve that. The time between the DOM
becomes visible and handlers are attached is small enough to ignore
this bug for now anyway.
Diffstat (limited to 'addons/website/static/src')
| -rw-r--r-- | addons/website/static/src/js/website.tour.rte.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/addons/website/static/src/js/website.tour.rte.js b/addons/website/static/src/js/website.tour.rte.js index 3026e4c86b2..7785441faa0 100644 --- a/addons/website/static/src/js/website.tour.rte.js +++ b/addons/website/static/src/js/website.tour.rte.js @@ -2,9 +2,12 @@ odoo.define('website.tour.rte', function (require) { 'use strict'; var tour = require("web_tour.tour"); -var local_storage = require('web.local_storage'); +var base = require("web_editor.base"); -tour.register('rte_translator', { test: true }, +tour.register('rte_translator', { + test: true, + wait_for: base.ready() +}, [ { content: "click on Add a language", |
