Skip to content
Snippets Groups Projects
Commit 0916acb1 authored by Aurélien Warnon's avatar Aurélien Warnon Committed by fw-bot
Browse files

[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#39894

X-original-commit: 84603c6d928e5ba9b19c4ed3e8b6edbab42a8a5b
Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 75458c3a
No related branches found
No related tags found
No related merge requests found
......@@ -244,6 +244,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');
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment