LeftAndMain.js: Fix 'X-Reload' for IE10 (fixes #647)

This commit is contained in:
Ingo Schommer 2013-06-13 15:17:14 +02:00
parent d42cbdd613
commit 5ff69b98ab

View File

@ -461,7 +461,8 @@ jQuery.noConflict();
// Support a full reload
if(xhr.getResponseHeader('X-Reload') && xhr.getResponseHeader('X-ControllerURL')) {
document.location.href = xhr.getResponseHeader('X-ControllerURL');
document.location.href = $('base').attr('href').replace(/\/*$/, '')
+ '/' + xhr.getResponseHeader('X-ControllerURL');
return;
}
@ -469,12 +470,6 @@ jQuery.noConflict();
// case we'll ignore the response
if(!data) return;
// Support a full reload
if(xhr.getResponseHeader('X-Reload') && xhr.getResponseHeader('X-ControllerURL')) {
document.location.href = xhr.getResponseHeader('X-ControllerURL');
return;
}
// Update title
var title = xhr.getResponseHeader('X-Title');
if(title) document.title = decodeURIComponent(title.replace(/\+/g, ' '));