From f8a6db8d31c9d902b84bb07b4bd08c18d0215a43 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 3 Apr 2012 11:29:44 +1200 Subject: [PATCH] MINOR Temporarily reverted X-ControllerURL push state, as the header doesn't get set correctly in LeftAndMain::handleRequest() correctly. This fixes saving pages until X-ControllerURL has been corrected. --- admin/javascript/LeftAndMain.Content.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/admin/javascript/LeftAndMain.Content.js b/admin/javascript/LeftAndMain.Content.js index d1cf3d221..fb6c8a391 100644 --- a/admin/javascript/LeftAndMain.Content.js +++ b/admin/javascript/LeftAndMain.Content.js @@ -164,13 +164,6 @@ self.submitForm_responseHandler(form, xmlhttp.responseText, status, xmlhttp, formData); } - // Simulates a redirect on an ajax response - just exchange the URL without re-requesting it. - // Causes non-pushState browser to re-request the URL, so ignore for those. - if(window.History.enabled && !History.emulated.pushState) { - var url = xmlhttp.getResponseHeader('X-ControllerURL'); - if(url) window.History.replaceState({}, '', url); - } - // Re-init tabs (in case the form tag itself is a tabset) if(self.hasClass('ss-tabset')) self.removeClass('ss-tabset').addClass('ss-tabset'); @@ -317,4 +310,4 @@ } }); -})(jQuery); \ No newline at end of file +})(jQuery);