diff options
| author | Jeremy Kersten <jke@odoo.com> | 2018-08-22 16:49:19 +0200 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2018-08-23 13:49:01 +0200 |
| commit | 5b0327f6501e479d39a88df9eb3d685dbdfe69d6 (patch) | |
| tree | 729e2b1bc8c5fdd8dc7a7672305820ba106f6d07 /addons/website_forum/static/src | |
| parent | 2f4358b921b619257879ac3a60daeeae7876a1e4 (diff) | |
[IMP] website, website_forum: add a class modal_shown on modal once css animation is completed
Use this new class in website_forum to avoid that the tour click during
the animation and fail randomly.
https://getbootstrap.com/docs/4.0/components/modal/#events
Diffstat (limited to 'addons/website_forum/static/src')
| -rw-r--r-- | addons/website_forum/static/src/js/website_tour_forum.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/website_forum/static/src/js/website_tour_forum.js b/addons/website_forum/static/src/js/website_tour_forum.js index bd041f58714..ba178f8cbcb 100644 --- a/addons/website_forum/static/src/js/website_tour_forum.js +++ b/addons/website_forum/static/src/js/website_tour_forum.js @@ -51,6 +51,7 @@ odoo.define("website_forum.tour_forum", function (require) { content: _t("Click to post your question."), position: "bottom", }, { + extra_trigger: 'div.modal.modal_shown', trigger: ".modal-header button.close", auto: true, }, { @@ -64,6 +65,7 @@ odoo.define("website_forum.tour_forum", function (require) { content: _t("Click to post your answer."), position: "bottom", }, { + extra_trigger: 'div.modal.modal_shown', trigger: ".modal-header button.close", auto: true, }, { |
