Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 368a9122 authored by EL HASSANE GARGEM's avatar EL HASSANE GARGEM
Browse files

enhancement of exitonboarding

parent f4a182e6
Branches
Tags
1 merge request!46Onboarding
......@@ -128,7 +128,8 @@ steps_trans = [{
];
function exitonboarding() {
if(onboarding_document && onboarding_images && onboarding_edit && onboarding_trans && onboarding_models){
if(userProfile.get('onboarding_document') == userProfile.get('onboarding_images') == userProfile.get('onboarding_edit') == userProfile.get('onboarding_trans') == userProfile.get('onboarding_models') == true)
{
$.ajax({
type: 'PUT',
......
......@@ -179,10 +179,14 @@ if (onboarding== "True" && !onboarding_document)
document_intro.start();
document_intro.onexit(function() {
userProfile.set('onboarding_document',true);
exitonboarding();
});
document_intro.oncomplete(function() {
userProfile.set('onboarding_document',true);
exitonboarding();
var images_url = "{% url 'document-images' pk=document.pk %}";
window.location.href = images_url;
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment