From d7dbe7fee362d587dfc334135d9581b6216a4295 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 23 Nov 2025 04:13:56 +0000
Subject: [PATCH] =Timeline block, and feed block updated. DataStore.js refactored to not block rendering
---
assets/js/concise/Referral.js | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/assets/js/concise/Referral.js b/assets/js/concise/Referral.js
index 6f2442d..9fe722d 100644
--- a/assets/js/concise/Referral.js
+++ b/assets/js/concise/Referral.js
@@ -29,7 +29,6 @@
};
this.forms = this.container.querySelectorAll('form');
- console.log(this.forms);
this.popup = new window.jvbPopup({
toggle: this.toggle,
popup: this.container,
@@ -281,10 +280,8 @@
* Handle form submission
*/
async handleFormSubmit(event) {
- console.log('Form Submission!');
window.debouncer.cancel('check-referral');
event.preventDefault();
- console.log('Still working?');
const form = event.target;
@@ -299,8 +296,6 @@
try {
let result = {success: false, message: ''};
- console.log(form);
- console.log(form.id);
if (form.id === 'referral-code-form') {
if (!formData.get('name')) {
result.message += 'We need your name to know who you are.';
@@ -323,7 +318,7 @@
data.context = {};
data.context['redirect_to'] = window.location.href+'?seeReferral=1';
console.log('Making Request with: ', data);
- result = await this.makeRequest('magic-link', data);
+ result = await this.makeRequest('magic', data);
}
@@ -344,7 +339,7 @@
async makeRequest(endpoint, data) {
if (![
- 'magic-link',
+ 'magic',
'referrals/register',
'referrals/check-code'
].includes(endpoint)) {
--
Gitblit v1.10.0