From cc0652974673991e23f86bf93ca06daca40d033a Mon Sep 17 00:00:00 2001 From: Florian Charlier Date: Mon, 9 Oct 2023 13:33:51 +0200 Subject: [PATCH] [CLN] remove classes only used in tour We removed CSS styling for these classes in 854083f70a0ea4d6d1a5950c65e10f447c87bcaf, but these were only used in the survey tour, and not instrumental, so we can remove them. Task-3525225 closes odoo/odoo#138095 Signed-off-by: Thibault Delavallee (tde) --- addons/survey/static/src/js/tours/survey_tour.js | 8 ++++---- addons/survey/views/survey_templates.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/survey/static/src/js/tours/survey_tour.js b/addons/survey/static/src/js/tours/survey_tour.js index 9d0a64f2100..d2e7edae1d6 100644 --- a/addons/survey/static/src/js/tours/survey_tour.js +++ b/addons/survey/static/src/js/tours/survey_tour.js @@ -21,21 +21,21 @@ registry.category("web_tour.tours").add('survey_tour', { content: _t("Let's give it a spin!"), position: 'bottom', }, { - trigger: '.o_survey_start button[type=submit]', + trigger: 'button[type=submit]', content: _t("Let's get started!"), position: 'bottom', }, { - trigger: '.o_survey_simple_choice button[type=submit]', + trigger: 'button[type=submit]', extra_trigger: '.js_question-wrapper span:contains("How frequently")', content: _t("Whenever you pick an answer, Odoo saves it for you."), position: 'bottom', }, { - trigger: '.o_survey_numerical_box button[type=submit]', + trigger: 'button[type=submit]', extra_trigger: '.js_question-wrapper span:contains("How many")', content: _t("Only a single question left!"), position: 'bottom', }, { - trigger: '.o_survey_matrix button[value=finish]', + trigger: 'button[value=finish]', extra_trigger: '.js_question-wrapper span:contains("How likely")', content: _t("Now that you are done, submit your form."), position: 'bottom', diff --git a/addons/survey/views/survey_templates.xml b/addons/survey/views/survey_templates.xml index 3c085d5f790..9cc7a7967f8 100644 --- a/addons/survey/views/survey_templates.xml +++ b/addons/survey/views/survey_templates.xml @@ -225,7 +225,7 @@ An exception is made for options with images, where we always want to optimize screen space.-->
+ t-attf-class="o_survey_page_per_question #{'w-lg-50 mx-lg-auto' if question.question_type in ('numerical_box', 'date', 'datetime') else ''}">