|
@@ 313-320 (lines=8) @@
|
| 310 |
|
$form = $this->CompareVersionsForm($version1, $version2); |
| 311 |
|
|
| 312 |
|
// javascript solution, render into template |
| 313 |
|
if($this->getRequest()->isAjax()) { |
| 314 |
|
return $this->customise(array( |
| 315 |
|
"EditForm" => $form |
| 316 |
|
))->renderWith(array( |
| 317 |
|
static::class . '_EditForm', |
| 318 |
|
'LeftAndMain_Content' |
| 319 |
|
)); |
| 320 |
|
} |
| 321 |
|
|
| 322 |
|
// non javascript, redirect the user to the page |
| 323 |
|
return $this->redirect(Controller::join_links( |
|
@@ 351-358 (lines=8) @@
|
| 348 |
|
} |
| 349 |
|
|
| 350 |
|
$request = $this->getRequest(); |
| 351 |
|
if($request->isAjax()) { |
| 352 |
|
return $this->customise(array( |
| 353 |
|
"EditForm" => $this->ShowVersionForm($versionID) |
| 354 |
|
))->renderWith(array( |
| 355 |
|
static::class . '_EditForm', |
| 356 |
|
'LeftAndMain_Content' |
| 357 |
|
)); |
| 358 |
|
} |
| 359 |
|
|
| 360 |
|
// non javascript, redirect the user to the page |
| 361 |
|
return $this->redirect(Controller::join_links( |