diff options
Diffstat (limited to 'src/controller/PageManagementController.php')
| -rw-r--r-- | src/controller/PageManagementController.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/controller/PageManagementController.php b/src/controller/PageManagementController.php index 4528810..75967eb 100644 --- a/src/controller/PageManagementController.php +++ b/src/controller/PageManagementController.php | |||
| @@ -286,7 +286,12 @@ class PageManagementController | |||
| 286 | $director->getNode()->getNodeData()->setPresentation($presentation); | 286 | $director->getNode()->getNodeData()->setPresentation($presentation); |
| 287 | 287 | ||
| 288 | $entityManager->flush(); | 288 | $entityManager->flush(); |
| 289 | echo json_encode(['success' => true, 'presentation' => $json['presentation'], 'cols_min_width' => $director->getNode()->getNodeData()->getColsMinWidth()]); | 289 | |
| 290 | $response_data = ['success' => true, 'presentation' => $json['presentation']]; | ||
| 291 | if($json['presentation'] === 'grid'){ | ||
| 292 | $response_data['cols_min_width'] = $director->getNode()->getNodeData()->getColsMinWidth(); | ||
| 293 | } | ||
| 294 | echo json_encode($response_data); | ||
| 290 | } | 295 | } |
| 291 | else{ | 296 | else{ |
| 292 | echo json_encode(['success' => false]); | 297 | echo json_encode(['success' => false]); |
