From 7506222d156ba3b0acee6bc37b6a0c6d473b1dc3 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 17 Dec 2017 19:17:03 +0100 Subject: [PATCH] Open user page shorcut --- assets/js/common/shorcuts.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 *