diff src/chat.js @ 60:3521166513b3

finish invite
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 04 Mar 2025 20:31:00 -0700
parents 8270106644db
children d4d154b404f8
line wrap: on
line diff
--- a/src/chat.js	Tue Mar 04 08:22:45 2025 -0700
+++ b/src/chat.js	Tue Mar 04 20:31:00 2025 -0700
@@ -280,3 +280,10 @@
 	span.textContent = email;
 	openModal(dialog);
 }
+
+function gotoInvite(el) {
+	let email = document.querySelector('dialog[invite] span[email]').textContent;
+	closeModal(el);
+	location = `chat?with=${email}`;
+	ajax(`save_post.js?post=${currentPostId}`,`content=${encodeURIComponent(text)}`);
+}