diff options
| author | Aurélien Warnon <awa@odoo.com> | 2019-11-04 13:08:11 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-11-06 15:51:19 +0000 |
| commit | fe74b69f89b0cd04d873a7c70b9a27c9f19ebaa2 (patch) | |
| tree | 9af67cc2adbc8f5aa908a4511f6b5a4c61ac3e36 | |
| parent | e6eaa062c8f541bde63d6de8e576ccb852ea579e (diff) | |
[FIX] website_slides: correctly hide "quiz finish" modal on "Next" button
This commit fixes the "quiz finish" modal display by correctly hiding it when the user clicks on
the "Next" button in the modal.
Without this fix, the user could run into an issue where the "modal backdrop" would stay on the
screen, locking all actions and forcing a manual refresh.
Task#2118532
closes odoo/odoo#39899
X-original-commit: 84603c6d928e5ba9b19c4ed3e8b6edbab42a8a5b
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
| -rw-r--r-- | addons/website_slides/static/src/js/slides_course_quiz.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/website_slides/static/src/js/slides_course_quiz.js b/addons/website_slides/static/src/js/slides_course_quiz.js index eec16effa97..88da63bebe7 100644 --- a/addons/website_slides/static/src/js/slides_course_quiz.js +++ b/addons/website_slides/static/src/js/slides_course_quiz.js @@ -339,6 +339,9 @@ odoo.define('website_slides.quiz', function (require) { */ _onClickNext: function (ev) { if (this.slide.hasNext) { + if (this.$('#slides_quiz_modal').length !== 0) { + this.$('#slides_quiz_modal').modal('hide'); + } this.trigger_up('slide_go_next'); } }, |
