Permalink
Browse files

Support for X-Reload header

Backported from 3.1. Required to get subsite's
"copy page to subsite" form submission working.
  • Loading branch information...
1 parent f431b35 commit d872202ae5fb7b689540ecc20ef1754d5aa937c2 @chillu chillu committed Jan 3, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 admin/javascript/LeftAndMain.js
@@ -370,6 +370,12 @@ jQuery.noConflict();
handleAjaxResponse: function(data, status, xhr) {
var self = this, url, activeTabs, guessFragment;
+ // Support a full reload
+ if(xhr.getResponseHeader('X-Reload') && xhr.getResponseHeader('X-ControllerURL')) {
+ document.location.href = xhr.getResponseHeader('X-ControllerURL');
+ return;
+ }
+
// Pseudo-redirects via X-ControllerURL might return empty data, in which
// case we'll ignore the response
if(!data) return;

0 comments on commit d872202

Please sign in to comment.