mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Fixed loading/saving regressions due to new PJAX logic introduced in e01b0aa3d03de2
This commit is contained in:
parent
85a898e1d5
commit
1742b4b742
@ -142,7 +142,7 @@
|
||||
* Suppress submission unless it is handled through ajaxSubmit().
|
||||
*/
|
||||
onsubmit: function(e, button) {
|
||||
this.parents('.cms-content').submitForm(this, button);
|
||||
this.closest('.cms-content').submitForm(this, button);
|
||||
|
||||
return false;
|
||||
},
|
||||
|
@ -619,7 +619,7 @@ class GridField extends FormField {
|
||||
}
|
||||
}
|
||||
|
||||
switch($request->getHeader('X-Get-Fragment')) {
|
||||
switch($request->getHeader('X-Pjax')) {
|
||||
case 'CurrentField':
|
||||
return $this->FieldHolder();
|
||||
break;
|
||||
|
@ -311,7 +311,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler {
|
||||
|
||||
$form->sessionMessage($message, 'good');
|
||||
|
||||
return Controller::curr()->redirectBack();
|
||||
return Controller::curr()->redirect($this->Link());
|
||||
}
|
||||
|
||||
function doDelete($data, $form) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user