From fff721dd185f5b97f7ae7a6e64189e55887ff590 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 05 Jul 2026 18:36:57 +0000
Subject: [PATCH] =Cleaning up the Square integration (still a bit more to do yet). Also majorly overhauled /rest/ files to ignore a rest request 'user' paramater, and rely on get_current_user_id() instead.

---
 assets/js/concise/Modal.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/assets/js/concise/Modal.js b/assets/js/concise/Modal.js
index 39d345f..8231740 100644
--- a/assets/js/concise/Modal.js
+++ b/assets/js/concise/Modal.js
@@ -133,9 +133,10 @@
 			return;
 		}
 
-		if (this.elements.save && window.targetCheck(e, this.elements.save)) {
-			this.handleClose();
-		} else if (this.elements.close && window.targetCheck(e, this.elements.close)) {
+		// if (this.elements.save && window.targetCheck(e, this.elements.save)) {
+		// 	this.handleClose();
+		// } else
+			if (this.elements.close && window.targetCheck(e, this.elements.close)) {
 			// Additional check: only close if we're the top modal
 			if (ModalController.modalStack[ModalController.modalStack.length - 1] === this) {
 				this.handleClose();

--
Gitblit v1.10.0