From e89c799746e4859081de93d741c76b2cdd5fe094 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Thu, 10 Nov 2016 16:22:16 +0000 Subject: [PATCH] added gcube client context inject git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/liferay62-plugins/d4science-responsive-theme@134057 82a268e6-3cf1-43bd-a215-b396298e98cf --- src/main/webapp/js/gcube-context-injection.js | 4 ++-- src/main/webapp/templates/portal_normal.vm | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/js/gcube-context-injection.js b/src/main/webapp/js/gcube-context-injection.js index 791bea6..d4ace78 100644 --- a/src/main/webapp/js/gcube-context-injection.js +++ b/src/main/webapp/js/gcube-context-injection.js @@ -8,8 +8,8 @@ function injectClientContext() { if (Liferay.ThemeDisplay.isSignedIn()) { userId = Liferay.ThemeDisplay.getUserId(); groupId = Liferay.ThemeDisplay.getScopeGroupId(); - //console.log('userId is = ' + userId); - //console.log("groupId is = " + groupId); + console.log('(d4science responsive) userId is = ' + userId); + console.log("groupId is = " + groupId); } else { groupId = Liferay.ThemeDisplay.getScopeGroupId(); diff --git a/src/main/webapp/templates/portal_normal.vm b/src/main/webapp/templates/portal_normal.vm index 27e1955..8e19722 100644 --- a/src/main/webapp/templates/portal_normal.vm +++ b/src/main/webapp/templates/portal_normal.vm @@ -17,6 +17,7 @@ $theme.include($top_head_include) +