From 48906f6528e2d9856e9ac77882f7c4aadeb8650f Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Tue, 5 Apr 2016 13:40:03 +0000 Subject: [PATCH] Location is passed when calling notificationchecker servlet in order to get users' profile pages git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/liferay62-plugins/social-dockbar-hook@126768 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../html/portlet/dockbar/custom_dockbar_view.jspf | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/custom_jsps/html/portlet/dockbar/custom_dockbar_view.jspf b/src/main/webapp/custom_jsps/html/portlet/dockbar/custom_dockbar_view.jspf index 342f2ed..28490d9 100644 --- a/src/main/webapp/custom_jsps/html/portlet/dockbar/custom_dockbar_view.jspf +++ b/src/main/webapp/custom_jsps/html/portlet/dockbar/custom_dockbar_view.jspf @@ -13,17 +13,20 @@ //check for notifications on load after 3 seconds var username = "<%=themeDisplay.getUser().getScreenName()%>"; + // current location to extract the vre and the user profiles within it + var location = window.location.href; + $.get('/notificationchecker/notificationchecker', { - userid : username + userid : username, location : location }, function(responseText) { }); - //then repeat every 1.5 minutes setInterval(function() { var username = "<%=themeDisplay.getUser().getScreenName()%>"; - $.get('/notificationchecker/notificationchecker', { - userid : username + var location = window.location.href; + $.get('/notificationchecker/notificationchecker',{ + userid : username, location : location }, function(responseText) { }); }, 90000);