added header param for catalogue requests
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/liferay62-plugins/d4science-responsive-theme@134748 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
8cee680f00
commit
3436bff364
|
@ -1,6 +1,6 @@
|
|||
name=d4science-responsive-theme
|
||||
module-group-id=liferay
|
||||
module-incremental-version=3
|
||||
module-incremental-version=5
|
||||
tags=
|
||||
short-description=
|
||||
change-log=
|
||||
|
|
|
@ -11,7 +11,7 @@ function injectClientContext() {
|
|||
if (Liferay.ThemeDisplay.isSignedIn()) {
|
||||
userId = Liferay.ThemeDisplay.getUserId();
|
||||
groupId = Liferay.ThemeDisplay.getScopeGroupId();
|
||||
console.log("D4S groupId is = " + groupId);
|
||||
console.log("groupid is = " + groupId);
|
||||
}
|
||||
else {
|
||||
groupId = Liferay.ThemeDisplay.getScopeGroupId();
|
||||
|
@ -22,6 +22,7 @@ function injectClientContext() {
|
|||
var newSend = function(vData) {
|
||||
this.setRequestHeader("gcube-userId", userId);
|
||||
this.setRequestHeader("gcube-vreid", groupId);
|
||||
this.setRequestHeader("gcube-request-url", location.href);
|
||||
this.realSend(vData);
|
||||
};
|
||||
XMLHttpRequest.prototype.send = newSend;
|
||||
|
|
Loading…
Reference in New Issue