updated css and gcube context's override of the XMLHttpRequest's send method to support EDISON case

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/liferay62-plugins/generic-configurable-theme@141819 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2017-01-26 14:45:38 +00:00
parent 53dc3f17f2
commit 6745fae9fa
2 changed files with 16 additions and 13 deletions

View File

@ -12,13 +12,13 @@ $dockbarGradientStart: #FFF;
$dockbarOpenGradientEnd: #0993DD;
$dockbarOpenGradientStart: #0EA6F9;
$navbarGradientStart: #918f90;
$navbarGradientEnd: #918f90;
$navbarGradientStart: #0271BE;
$navbarGradientEnd: #0271BE;
$footerFontColor: #FFF;
$navbarSelected: #f6871b;
$navbarHover: green;
$navbarSelected: #019AD3;
$navbarHover: #4CB5D2;
$dockbarCustomColor: #FFF;
/* --- Hide the My Calendars section in Calendar portlet **/
@ -39,7 +39,7 @@ div#_1_WAR_calendarportlet_calendarListContainer > div:last-child {
/* --- Custom vars, styles and mixins **/
@mixin navbarGradient($start, $end) {
background: #918f90;
background: #0271BE;
}
@mixin navbar-border-radius($radius) {

View File

@ -18,14 +18,17 @@ function injectClientContext() {
//console.log('Not logged in, injecting groupId only');
}
XMLHttpRequest.prototype.realSend = XMLHttpRequest.prototype.send;
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;
var send = window.XMLHttpRequest.prototype.send;
function sendReplacement(data) {
this.setRequestHeader("gcube-userId", userId);
this.setRequestHeader("gcube-vreid", groupId);
this.setRequestHeader("gcube-request-url", location.href);
if(this.onreadystatechange) {
this._onreadystatechange = this.onreadystatechange;
}
return send.apply(this, arguments);
}
window.XMLHttpRequest.prototype.send = sendReplacement;
}
}
/*