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:
parent
a6367a440d
commit
48906f6528
|
@ -13,17 +13,20 @@
|
||||||
//check for notifications on load after 3 seconds
|
//check for notifications on load after 3 seconds
|
||||||
var username = "<%=themeDisplay.getUser().getScreenName()%>";
|
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', {
|
$.get('/notificationchecker/notificationchecker', {
|
||||||
userid : username
|
userid : username, location : location
|
||||||
}, function(responseText) {
|
}, function(responseText) {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
//then repeat every 1.5 minutes
|
//then repeat every 1.5 minutes
|
||||||
setInterval(function() {
|
setInterval(function() {
|
||||||
var username = "<%=themeDisplay.getUser().getScreenName()%>";
|
var username = "<%=themeDisplay.getUser().getScreenName()%>";
|
||||||
|
var location = window.location.href;
|
||||||
$.get('/notificationchecker/notificationchecker',{
|
$.get('/notificationchecker/notificationchecker',{
|
||||||
userid : username
|
userid : username, location : location
|
||||||
}, function(responseText) {
|
}, function(responseText) {
|
||||||
});
|
});
|
||||||
}, 90000);
|
}, 90000);
|
||||||
|
|
Loading…
Reference in New Issue