diff --git a/assets/js/common/shorcuts.js b/assets/js/common/shorcuts.js index d70133dc..417aa446 100644 --- a/assets/js/common/shorcuts.js +++ b/assets/js/common/shorcuts.js @@ -31,6 +31,16 @@ function openPage(pageURI, additionnalData){ return ComunicWeb.common.page.openPage(pageURI, additionnalData); } +/** + * Open a user page quickly + * + * @param {String} user The ID of the user or its directory + * @return {Boolean} True for a success + */ +function openUserPage(user){ + return openPage("user/" + user); +} + /** * Check if user is signed in or not *