Skip to content

Commit

Permalink
Included action to Ajax request
Browse files Browse the repository at this point in the history
  • Loading branch information
bleutzinn committed Mar 2, 2019
1 parent 7953c99 commit b891b8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/editor.js.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit b891b8f

Please sign in to comment.