mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #303 from mateusz/os-7126
BUGFIX: remove form auto-detection from the generic JS state handler.
This commit is contained in:
commit
d34d57a034
@ -213,9 +213,6 @@ jQuery.noConflict();
|
|||||||
var headers = {};
|
var headers = {};
|
||||||
if(state.data.pjax) {
|
if(state.data.pjax) {
|
||||||
headers['X-Pjax'] = 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 {
|
} else {
|
||||||
// Replace full RHS content area
|
// Replace full RHS content area
|
||||||
headers["X-Pjax"] = 'Content';
|
headers["X-Pjax"] = 'Content';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user