diff options
| author | Aaron Bohy <aab@odoo.com> | 2018-01-25 20:15:40 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2018-01-26 19:26:03 +0100 |
| commit | fbb6942326bb6be120e300032df40ca4c72fc72b (patch) | |
| tree | f6c148967e304d1ba0acc78dba6342089a92a3d7 /addons/project/static/src | |
| parent | b96a4f629646d40ad4a2dceb1e6677ab43342545 (diff) | |
[FIX] project: adapt tour to flow changes
The ColumnQuickCreate widget is now automatically open when
entering a grouped Kanban view with no column. Moreover, the DOM
of the quick create has changed. The tour had to be adapted
accordingly.
Diffstat (limited to 'addons/project/static/src')
| -rw-r--r-- | addons/project/static/src/js/tour.js | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/addons/project/static/src/js/tour.js b/addons/project/static/src/js/tour.js index fee2309b853..270206c80d7 100644 --- a/addons/project/static/src/js/tour.js +++ b/addons/project/static/src/js/tour.js @@ -22,9 +22,6 @@ tour.register('project_tour', { trigger: 'input.o_project_name', content: _t('Choose a <b>project name</b>. (e.g. Website Launch, Product Development, Office Party, etc.)'), position: 'right', - run: function (actions) { - actions.auto(); - }, }, { trigger: '.o_open_tasks', content: _t('This will create new project and redirect us to its tasks.'), @@ -33,14 +30,12 @@ tour.register('project_tour', { actions.auto(".modal:visible .btn.btn-primary"); }, }, { - trigger: ".o_kanban_project_tasks .o_column_quick_create", + trigger: ".o_kanban_project_tasks .o_column_quick_create input", content: _t("Add columns to configure <b>stages for your tasks</b>.<br/><i>e.g. Specification > Development > Done</i>"), position: "right" }, { - trigger: ".o-kanban-button-new", - extra_trigger: '.o_kanban_project_tasks', - content: _t("Now that the project is set up, <b>create a few tasks</b>."), - position: "right" + trigger: ".o_kanban_project_tasks .o_column_quick_create .o_kanban_add", + auto: true, }, { trigger: '.o-kanban-button-new', extra_trigger: '.o_kanban_project_tasks', @@ -48,22 +43,16 @@ tour.register('project_tour', { position: 'right', width: 200, }, { - trigger: 'input.o_task_name', + trigger: '.o_kanban_quick_create input.o_field_char[name=name]', + extra_trigger: '.o_kanban_project_tasks', content: _t('Choose a <b>task name</b>. (e.g. Website Design, Purchase Goods etc.)'), position: 'right', - run: function (actions) { - actions.auto(); - }, }, { - trigger: '.o_form_button_save', + trigger: '.o_kanban_quick_create .o_kanban_add', + extra_trigger: '.o_kanban_project_tasks', content: _t("<p>Once your task is ready, you can save it.</p>"), position: 'bottom', }, { - trigger: ".breadcrumb li:not(.active):last", - extra_trigger: '.o_form_project_tasks.o_form_readonly', - content: _t("Use the breadcrumbs to <b>go back to your tasks pipeline</b>."), - position: "bottom" -}, { trigger: ".o_kanban_record .o_priority_star", extra_trigger: '.o_kanban_project_tasks', content: _t("<b>Star tasks</b> to mark team priorities."), |
