diff options
| author | qsm-odoo <qsm@odoo.com> | 2015-09-08 10:01:12 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2015-09-08 14:14:31 +0200 |
| commit | 4932bb13f30dc589dd9253bd74d4fc3faaf9852d (patch) | |
| tree | 7ec1e3bbd0274d4e2c85b1c6c1ea2dbb8356629b /addons/web/static/src/js | |
| parent | 7a5e5adb565f076579fba422a723bd50e5b40775 (diff) | |
[FIX] web: Tour step without element should not click on body
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/tour.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/web/static/src/js/tour.js b/addons/web/static/src/js/tour.js index 5f8da21cbc9..5cbb9484191 100644 --- a/addons/web/static/src/js/tour.js +++ b/addons/web/static/src/js/tour.js @@ -650,10 +650,11 @@ var Tour = { step.autoComplete(tour); } + var $element = $(step.element); + if ((step.element === "body" && step.backdrop) || !$element.size()) return; + $(".popover.tour [data-role='next']").click(); - var $element = $(step.element); - if (!$element.size()) return; if (state.log === "events") console.log("Event handlers:", $element[0], $element.getHandlers()); var click_event = function(type) { |
