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
This commit is contained in:
Costantino Perciante 2016-04-05 13:40:03 +00:00
parent a6367a440d
commit 48906f6528
1 changed files with 7 additions and 4 deletions

View File

@ -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);