| | |
| | | keyPath: 'id', |
| | | endpoint: 'content', |
| | | headers: { |
| | | 'action_nonce': window.auth.getNonce('dash'), |
| | | 'X-Action-Nonce': window.auth.getNonce('dash'), |
| | | }, |
| | | indexes: [ |
| | | {name: 'id', keyPath: 'id'}, |
| | |
| | | let operation = { |
| | | endpoint: 'content', |
| | | headers: { |
| | | 'action_nonce': window.auth.getNonce('dash'), |
| | | 'X-Action-Nonce': window.auth.getNonce('dash'), |
| | | }, |
| | | data: { |
| | | posts: changes, |
| | |
| | | |
| | | // Get the base content type |
| | | data.content = form.closest('dialog')?.dataset.content || this.content; |
| | | data.user = window.auth.getUser(); |
| | | // data.user = window.auth.getUser(); |
| | | |
| | | // Collect timeline entries |
| | | const timelineGroups = form.querySelectorAll('.upload-group'); |