OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/assets/javascripts/onboarding/boards_tour.js

43 lines
1.7 KiB

(function ($) {
$(function() {
window.boardTourSteps = [
{
'next .board-view-menu-item': I18n.t('js.onboarding.steps.boards.overview'),
'showSkip': false,
'nextButton': {text: I18n.t('js.onboarding.buttons.next')},
onNext: function () {
$('.board-view-menu-item ~ .toggler')[0].click();
$(".main-menu--children-sub-item:contains('KANBAN')")[0].click();
}
},
{
'next .board-list--container': I18n.t('js.onboarding.steps.boards.lists'),
'showSkip': false,
'nextButton': {text: I18n.t('js.onboarding.buttons.next')},
'containerClass': '-dark',
'timeout': function() {
return new Promise(function(resolve) {
waitForElement('.wp-card', '#content', function() {
resolve();
});
});
}
},
{
'next .board-list--card-dropdown-button': I18n.t('js.onboarding.steps.boards.add'),
'showSkip': false,
'nextButton': {text: I18n.t('js.onboarding.buttons.next')},
},
{
'next .boards-list--container': I18n.t('js.onboarding.steps.boards.drag'),
'showSkip': false,
'nextButton': {text: I18n.t('js.onboarding.buttons.next')},
'containerClass': '-dark -hidden-arrow',
onNext: function () {
$('.main-menu--arrow-left-to-project')[0].click();
}
}
];
});
}(jQuery))