From 7c5a451a9adfb0201fed296dee0b280348c6ebf3 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 17 Sep 2018 05:38:23 +0000 Subject: [PATCH] update contact form --- lib/extensions/admin/js/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/extensions/admin/js/app.js b/lib/extensions/admin/js/app.js index 5783b4a..d05e434 100644 --- a/lib/extensions/admin/js/app.js +++ b/lib/extensions/admin/js/app.js @@ -4,9 +4,11 @@ document.body.hidden = false; function formSubmit() { + // to be used for good, not evil var msg = { - address: document.querySelector('.js-list-address').value - , comment: 'telebit.cloud: ' + (document.querySelector('.js-list-comment').value || '') + name: document.querySelector('.js-list-comment').value + , address: document.querySelector('.js-list-address').value + , list: 'telebit@ppl.family' }; window.fetch('https://api.ppl.family/api/ppl.family/public/list', {