Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUGFIX Fixed loading/saving regressions due to new PJAX logic introdu…

…ced in e01b0aa
  • Loading branch information...
commit 1742b4b7426375588b330693cf16314030bb8d29 1 parent 85a898e
@chillu chillu authored
View
2  admin/javascript/LeftAndMain.EditForm.js
@@ -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
2  forms/gridfield/GridField.php
@@ -619,7 +619,7 @@ public function gridFieldAlterAction($data, $form, SS_HTTPRequest $request) {
}
}
- switch($request->getHeader('X-Get-Fragment')) {
+ switch($request->getHeader('X-Pjax')) {
case 'CurrentField':
return $this->FieldHolder();
break;
View
2  forms/gridfield/GridFieldDetailForm.php
@@ -311,7 +311,7 @@ function doSave($data, $form) {
$form->sessionMessage($message, 'good');
- return Controller::curr()->redirectBack();
+ return Controller::curr()->redirect($this->Link());
}
function doDelete($data, $form) {
Please sign in to comment.
Something went wrong with that request. Please try again.