From 1fdb57631810107461fce6fe2d7b5c69e24e8497 Mon Sep 17 00:00:00 2001 From: Pierre Date: Thu, 4 Jan 2018 11:29:52 +0100 Subject: [PATCH] Added link action on post owner name --- assets/js/components/posts/ui.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/js/components/posts/ui.js b/assets/js/components/posts/ui.js index 458526c0..6c482ca0 100644 --- a/assets/js/components/posts/ui.js +++ b/assets/js/components/posts/ui.js @@ -64,6 +64,10 @@ ComunicWeb.components.posts.ui = { if(result.firstName){ userAccountImage.src = result.accountImage; userName.innerHTML = result.firstName + " " + result.lastName; + + userName.onclick = function(){ + openUserPage(userIDorPath(result)); + } } });