| | |
| | | } |
| | | } |
| | | |
| | | if (event === 'sent-to-server') { |
| | | if (event === 'sent-to-server' && data.type === 'content_update') { |
| | | if (data instanceof FormData) return; |
| | | |
| | | for ( let [id, changes] of Object.entries(data.posts)) { |
| | |
| | | this.ui.modals.edit.form.dataset.formId = `edit-${itemID}`; |
| | | |
| | | |
| | | this.isPopulating = true; |
| | | |
| | | this.modals.edit.handleOpen(); |
| | | this.forms.registerForm(this.ui.modals.edit.form, {cache: false, |
| | | autoUpload: true,}); |
| | | |
| | | |
| | | this.isPopulating = true; |
| | | this.populate.populate(this.ui.modals.edit.form, item); |
| | | //For quill/taxonomy selector's async setups |
| | | requestAnimationFrame(() => { |
| | | requestAnimationFrame(() => { |
| | | this.isPopulating = false; |
| | | setTimeout(() => { |
| | | this.isPopulating = false; |
| | | }, 50); |
| | | }); |
| | | }); |
| | | |