From b891b8fe908ead61bae6b4904506e3ae6549f1cd Mon Sep 17 00:00:00 2001 From: bleutzinn Date: Sat, 2 Mar 2019 21:28:18 +0100 Subject: [PATCH] Included action to Ajax request --- templates/editor.js.twig | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/editor.js.twig b/templates/editor.js.twig index 25cdf5d..4ac4e09 100644 --- a/templates/editor.js.twig +++ b/templates/editor.js.twig @@ -67,6 +67,7 @@ document.addEventListener('DOMContentLoaded', function(event) { // Collect the contents of each region into a FormData instance payload = new FormData(); + payload.append('action', 'save'); payload.append('ct-nonce', nonce); for (name in regions) { if (regions.hasOwnProperty(name)) {