Skip to content
This repository
Browse code

BUGFIX: remove form auto-detection from the generic JS state handler.

Forms take care of PJAX state on their own in the submit and load functions (os-7126)
  • Loading branch information...
commit 452a507cc9fe648975bd7dbb2676d972add689ef 1 parent 6a10ed1
Mateusz U authored April 12, 2012

Showing 1 changed file with 0 additions and 3 deletions. Show diff stats Hide diff stats

  1. 3  admin/javascript/LeftAndMain.js
3  admin/javascript/LeftAndMain.js
@@ -213,9 +213,6 @@ jQuery.noConflict();
213 213
 				var headers = {};
214 214
 				if(state.data.pjax) {
215 215
 					headers['X-Pjax'] = state.data.pjax;
216  
-				} else if(contentEl[0] != null && contentEl.is('form')) {
217  
-					// Replace a form
218  
-					headers["X-Pjax"] = 'CurrentForm';
219 216
 				} else {
220 217
 					// Replace full RHS content area
221 218
 					headers["X-Pjax"] = 'Content';

0 notes on commit 452a507

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