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)
This commit is contained in:
Mateusz Uzdowski 2012-04-12 11:22:27 +12:00
parent 6a10ed19c1
commit 452a507cc9

View File

@ -213,9 +213,6 @@ jQuery.noConflict();
var headers = {};
if(state.data.pjax) {
headers['X-Pjax'] = state.data.pjax;
} else if(contentEl[0] != null && contentEl.is('form')) {
// Replace a form
headers["X-Pjax"] = 'CurrentForm';
} else {
// Replace full RHS content area
headers["X-Pjax"] = 'Content';