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/homescreen_tour.js

26 lines
964 B

(function ($) {
$(function() {
window.homescreenOnboardingTourSteps = [
{
'next #top-menu': I18n.t('js.onboarding.steps.welcome')
},
{
'description': I18n.t('js.onboarding.steps.project_selection'),
'selector': '.widget-box.projects',
'event': 'custom',
'showSkip': false,
'containerClass': '-dark',
'clickable': true,
onBeforeStart: function () {
// Handle next step
$('.widget-box.projects a').click(function () {
tutorialInstance.trigger('next');
});
// Disable clicks on the wp context menu links
$('.widget-box--blocks--buttons .button').addClass('-disabled').bind('click', preventClickHandler);
}
}
];
});
}(jQuery))