Skip to content
This repository
Browse code

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.
  • Loading branch information...
commit f8a6db8d31c9d902b84bb07b4bd08c18d0215a43 1 parent a2979f0
Sean Harvey authored April 03, 2012

Showing 1 changed file with 1 addition and 8 deletions. Show diff stats Hide diff stats

  1. 9  admin/javascript/LeftAndMain.Content.js
9  admin/javascript/LeftAndMain.Content.js
@@ -164,13 +164,6 @@
164 164
 						  self.submitForm_responseHandler(form, xmlhttp.responseText, status, xmlhttp, formData);
165 165
 						}
166 166
 
167  
-						// Simulates a redirect on an ajax response - just exchange the URL without re-requesting it.
168  
-						// Causes non-pushState browser to re-request the URL, so ignore for those.
169  
-						if(window.History.enabled && !History.emulated.pushState) {
170  
-							var url = xmlhttp.getResponseHeader('X-ControllerURL');
171  
-							if(url) window.History.replaceState({}, '', url);
172  
-						}
173  
-						
174 167
 						// Re-init tabs (in case the form tag itself is a tabset)
175 168
 						if(self.hasClass('ss-tabset')) self.removeClass('ss-tabset').addClass('ss-tabset');
176 169
 
@@ -317,4 +310,4 @@
317 310
 		}
318 311
 	});
319 312
 
320  
-})(jQuery);
  313
+})(jQuery);

0 notes on commit f8a6db8

Please sign in to comment.
Something went wrong with that request. Please try again.