mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
LeftAndMain.js: Fix 'X-Reload' for IE10 (fixes #647)
This commit is contained in:
parent
d42cbdd613
commit
5ff69b98ab
@ -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, ' '));
|
||||
|
Loading…
Reference in New Issue
Block a user