Implemented Preview button and states abstraction for toolbar

This commit is contained in:
Djamil Legato
2016-03-01 19:00:29 -08:00
parent 234484f14d
commit aa73b82832
9 changed files with 225 additions and 101 deletions

View File

@@ -750,7 +750,7 @@ class AdminController
$html = $page->content();
$this->admin->json_response = ['status' => 'success', 'message' => $html];
$this->admin->json_response = ['status' => 'success', 'preview' => $html];
} catch (\Exception $e) {
$this->admin->json_response = ['status' => 'error', 'message' => $e->getMessage()];