Merge pull request #303 from mateusz/os-7126

BUGFIX: remove form auto-detection from the generic JS state handler.
This commit is contained in:
Sam Minnée 2012-04-11 16:51:36 -07:00
commit d34d57a034

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';