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.
This commit is contained in:
Sean Harvey 2012-04-03 11:29:44 +12:00
parent a2979f0551
commit f8a6db8d31

View File

@ -164,13 +164,6 @@
self.submitForm_responseHandler(form, xmlhttp.responseText, status, xmlhttp, formData); 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) // Re-init tabs (in case the form tag itself is a tabset)
if(self.hasClass('ss-tabset')) self.removeClass('ss-tabset').addClass('ss-tabset'); if(self.hasClass('ss-tabset')) self.removeClass('ss-tabset').addClass('ss-tabset');