This avoid issues on browsers with a buggy javascript implementation that
resolve relative URL from dirname(window.location) instead of resolving it
from the base URL provided through the <base> markup in HTML.
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
}
if ((!href.contains(fqdn) && !this.className.contains('popup')) || node.hasClass('popup')) {
node.click(function () {
}
if ((!href.contains(fqdn) && !this.className.contains('popup')) || node.hasClass('popup')) {
node.click(function () {
- window.open(this.href);
+ window.open($.plURL(this.href));
popWin: function(w, h) {
return this.click(function() {
popWin: function(w, h) {
return this.click(function() {
- window.open(this.href, '_blank',
+ window.open($.plURL(this.href), '_blank',
'toolbar=0,location=0,directories=0,status=0,'
+'menubar=0,scrollbars=1,resizable=1,'
+'width='+w+',height='+h);
'toolbar=0,location=0,directories=0,status=0,'
+'menubar=0,scrollbars=1,resizable=1,'
+'width='+w+',height='+h);
break;
case 'admin':
$(this).attr('href', 'admin/user/' + profile.hrpid)
break;
case 'admin':
$(this).attr('href', 'admin/user/' + profile.hrpid)
- .click(function() { window.open($(this).attr('href')); return false });
+ .click(function() { window.open($.plURL(this.href)); return false });