summaryrefslogtreecommitdiff
path: root/addons/website_event/static/src
diff options
context:
space:
mode:
authorstd-odoo <std@odoo.com>2020-11-18 13:12:29 +0000
committerstd-odoo <std@odoo.com>2020-12-04 08:02:13 +0000
commit3209e775fe89132914cad9bc7ab40fa1a7811229 (patch)
tree7fb3b8fab910b1aacc8bfb2fa06b62f2b5b487f7 /addons/website_event/static/src
parent2db68c37ef32d9006301152c4595d2032948e933 (diff)
[FIX] (website_)event: constrain event tour steps to the event module
Bug === When we start the Event tour, if we go outside of Event during the tour we might see the tour bubble in the other application. It should be visible only in Event. Task 2381898 closes odoo/odoo#62736 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/website_event/static/src')
-rw-r--r--addons/website_event/static/src/js/tours/event_tour.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/addons/website_event/static/src/js/tours/event_tour.js b/addons/website_event/static/src/js/tours/event_tour.js
index cc7177d053b..49db16806ed 100644
--- a/addons/website_event/static/src/js/tours/event_tour.js
+++ b/addons/website_event/static/src/js/tours/event_tour.js
@@ -15,30 +15,34 @@ EventAdditionalTourSteps.include({
_get_website_event_steps: function () {
this._super.apply(this, arguments);
return [{
- trigger: 'button[name="is_published"]',
+ trigger: '.o_event_form_view button[name="is_published"]',
extra_trigger: 'div.o_form_buttons_view:not(.o_hidden)',
content: _t("Use this <b>shortcut</b> to easily access your event web page."),
position: 'bottom',
}, {
trigger: 'li#edit-page-menu a',
+ extra_trigger: '.o_wevent_event',
content: _t("With the Edit button, you can <b>customize</b> the web page visitors will see when registrating."),
position: 'bottom',
}, {
trigger: 'div[name="Image - Text"] .oe_snippet_thumbnail',
+ extra_trigger: '.o_wevent_event',
content: _t("<b>Drag and Drop</b> this snippet below the event title."),
position: 'bottom',
run: 'drag_and_drop #o_wevent_event_main_col',
}, {
trigger: 'button[data-action="save"]',
+ extra_trigger: '.o_wevent_event',
content: _t("Don't forget to click <b>save</b> when you're done."),
position: 'bottom',
}, {
trigger: 'label.js_publish_btn',
+ extra_trigger: '.o_wevent_event',
content: _t("Looking great! Let's now <b>publish</b> this page so that it becomes <b>visible</b> on your website!"),
position: 'bottom',
}, {
trigger: 'a.css_edit_dynamic',
- extra_trigger: 'div.o_notification_manager:empty',
+ extra_trigger: '.js_publish_management[data-object="event.event"] .js_publish_btn .css_unpublish:visible',
content: _t("Want to change your event configuration? Let's go back to the event form."),
position: 'bottom',
run: function (actions) {
@@ -46,6 +50,7 @@ EventAdditionalTourSteps.include({
},
}, {
trigger: 'a#edit-in-backend',
+ extra_trigger: '.o_wevent_event',
content: _t("This shortcut will bring you right back to the event form."),
position: 'bottom'
}];