diff options
| author | Romeo Fragomeli <rfr@odoo.com> | 2020-03-05 13:44:24 +0000 |
|---|---|---|
| committer | Adrien Dieudonne <adr@odoo.com> | 2020-03-11 10:10:16 +0000 |
| commit | ab2e3fdb7d801f8846b84733a47127e818a49d5b (patch) | |
| tree | 27ad68a03a0c57a571902ba4e1bfd114bbf836a8 /addons/website_event | |
| parent | edf4f5c781fa75ad1506912c4494006caddcaa4e (diff) | |
[REF] *: add tour steps utils
This commit moves some step utils in a dedicated file and add new ones.
These steps will be very useful for the Main Flow Tour to avoid
duplicated code.
To do this, we also had to transform it into functions to allow
utils to call each other. Existing one are converted for
standardization purpose.
Note that 'WEBSITE_NEW_PAGE' wasn't considered as an util.
This is a very simple step only used twice.
Diffstat (limited to 'addons/website_event')
| -rw-r--r-- | addons/website_event/static/src/js/tours/website_event.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/website_event/static/src/js/tours/website_event.js b/addons/website_event/static/src/js/tours/website_event.js index 8e693c9ef8e..3f704012527 100644 --- a/addons/website_event/static/src/js/tours/website_event.js +++ b/addons/website_event/static/src/js/tours/website_event.js @@ -8,7 +8,11 @@ odoo.define("website_event.tour", function (require) { tour.register("event", { url: "/", - }, [tour.STEPS.WEBSITE_NEW_PAGE, { + }, [{ + trigger: '#new-content-menu > a', + auto: true, + position: 'bottom', + }, { trigger: "a[data-action=new_event]", content: _t("Click here to create a new event."), position: "bottom", |
