BUGFIX Fixed loading/saving regressions due to new PJAX logic introduced in e01b0aa3d03de2

This commit is contained in:
Ingo Schommer 2012-04-10 00:34:04 +02:00
parent 85a898e1d5
commit 1742b4b742
3 changed files with 3 additions and 3 deletions

View File

@ -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;
},

View File

@ -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;

View File

@ -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) {