Added account created page

This commit is contained in:
Pierre
2018-04-11 12:25:50 +02:00
parent fb03f0db43
commit b61b27736c
7 changed files with 95 additions and 0 deletions

View File

@ -0,0 +1,28 @@
/**
* Account created page
*
* @author Pierre HUBERT
*/
ComunicWeb.pages.accountCreated = {
/**
* Open the account created page
*
* @param {Object} additionnalData Additionnal data passed in the method
* @param {element} target Where the page will be applied
*/
open: function(additionnalData, target){
var data = {
//Background image URL
background_img_url: ComunicWeb.__config.assetsURL + "img/pages/accountCreated/background.jpg"
};
//Apply the template
ComunicWeb.common.page.getAndShowTemplate(target, data, "pages/accountCreated.tpl", null, true);
}
}

View File

@ -156,6 +156,9 @@ ComunicWeb.pages.createAccount = {
));
return;
}
//Redirect to the account created page
openPage("account_created");
}
));
};