From 0afb2c0046b55c123eafb4ab9ee77efa68d12463 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sat, 06 Jun 2026 17:15:31 +0000
Subject: [PATCH] =Starting the Favourites.js setup, converting previous Northeh stuff to new Registrar, fixing up Square.php integration to match

---
 assets/js/concise/CRUD.js |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/assets/js/concise/CRUD.js b/assets/js/concise/CRUD.js
index 3255643..7ee64ff 100644
--- a/assets/js/concise/CRUD.js
+++ b/assets/js/concise/CRUD.js
@@ -558,7 +558,7 @@
 				}
 			}
 
-			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)) {
@@ -1294,17 +1294,20 @@
 		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);
 			});
 		});
 

--
Gitblit v1.10.0