Update slide list and edit slide form without page reloads
CI / Deploy / test (push) Successful in 58s
CI / Deploy / deploy (push) Skipped

Slide list actions (hide, delete, reset, duplicate, go live, pause) now run
via fetch and refresh only the changed regions, keeping scroll position and
focus. Add/edit slide forms open in a dialog. Admin pages answer with a
slim fragment layout when the X-Fragment header is sent.

Replace postLink confirms (inline onclick, blocked by the CSP) with
postButton and data-confirm handled in plenario.js.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-11 20:28:03 +01:00
1 parent 9262a57c17
commit b643072c3c
9 files changed
+403 -32

No files matched your search

+4
View File
@@ -71,6 +71,10 @@ abstract class AdminAppController extends AppController
{
parent::beforeRender($event);
$this->response = $this->protect($this->response);
// plenario.js asks for a fragment to update the open page without reloading it.
if ($this->request->getHeaderLine('X-Fragment') !== '') {
$this->viewBuilder()->setLayout('fragment');
}
}
/**