mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge in changes from 3.0.1-rc2
This commit is contained in:
commit
a9bedccd1f
@ -344,7 +344,12 @@ jQuery.noConflict();
|
||||
} else {
|
||||
// Fall back to replacing the content fragment if HTML is returned
|
||||
$data = $(data);
|
||||
guessFragment = $data.is('form') ? 'CurrentForm' : 'Content';
|
||||
|
||||
// Try and guess the fragment if none is provided
|
||||
// TODO: data-pjax-fragment might actually give us the fragment. For now we just check most common case
|
||||
guessFragment = 'Content';
|
||||
if ($data.is('form') && !$data.is('[data-pjax-fragment~=Content]')) guessFragment = 'CurrentForm';
|
||||
|
||||
newFragments[guessFragment] = $data;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user