mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
6a10ed19c1
commit
452a507cc9
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user