[FIX] website_slides: avoid display error messages twice in quizz completion

Purpose of this commit is to avoid having error message replacing the
cross used to close the container of the error message.

Task ID 2058595
PR #36281
This commit is contained in:
Thibault Delavallée
2019-08-30 15:05:59 +00:00
parent dc31884dcf
commit bf3cdac628
@@ -95,7 +95,7 @@ odoo.define('website_slides.quiz', function (require) {
} else if (alert_code === 'public_user') {
message = _t("You must be logged to submit the quiz.");
}
this.$('.o_wslides_js_lesson_quiz_error span').html(message);
this.$('.o_wslides_js_lesson_quiz_error span:first').html(message);
this.$('.o_wslides_js_lesson_quiz_error').removeClass('d-none');
},