From 452a507cc9fe648975bd7dbb2676d972add689ef Mon Sep 17 00:00:00 2001 From: Mateusz Uzdowski Date: Thu, 12 Apr 2012 11:22:27 +1200 Subject: [PATCH] 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) --- admin/javascript/LeftAndMain.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/admin/javascript/LeftAndMain.js b/admin/javascript/LeftAndMain.js index bd9b950b8..7a59ed218 100644 --- a/admin/javascript/LeftAndMain.js +++ b/admin/javascript/LeftAndMain.js @@ -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';