From f11aa13cc300dc3182afbddcc465cdf8c2a522b9 Mon Sep 17 00:00:00 2001
From: Chad Whitacre
Date: Thu, 7 Sep 2017 13:38:33 -0400
Subject: [PATCH] Stub out the ecosystem chooser
---
js/gratipay/homepage.js | 7 +++++++
www/index.spt | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/js/gratipay/homepage.js b/js/gratipay/homepage.js
index 9212bcdd31..d07ca9be7e 100644
--- a/js/gratipay/homepage.js
+++ b/js/gratipay/homepage.js
@@ -2,9 +2,16 @@ Gratipay.homepage = {}
Gratipay.homepage.initForm = function(clientAuthorization) {
$form = $('#homepage #content form');
+
$submit= $form.find('button[type=submit]');
$submit.click(Gratipay.homepage.submitForm);
+ $chooseEcosystem = $form.find('.ecosystem-chooser button');
+ $chooseEcosystem.click(function(e) {
+ e.preventDefault();
+ Gratipay.notification('Not implemented.', 'error');
+ });
+
$promote = $form.find('.promotion-gate button');
$promote.click(Gratipay.homepage.openPromote);
diff --git a/www/index.spt b/www/index.spt
index 40a2a2281a..0892c7d616 100644
--- a/www/index.spt
+++ b/www/index.spt
@@ -115,10 +115,10 @@ $(document).ready(function() {
{{ _('Which do you value most?{br}(JavaScript, Python, etc.)', br='
'|safe) }}
-