Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Stub out the ecosystem chooser
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Sep 8, 2017
1 parent 1097939 commit 75e8816
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions js/gratipay/homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions www/index.spt
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ $(document).ready(function() {
{{ _('Which do you value most?{br}(JavaScript, Python, etc.)', br='<br>'|safe) }}
</p>

<div class="important-button">
<div class="important-button ecosystem-chooser">
<button class="large">{{ _('Choose an Ecosystem') }}</button>
</div>
<div class="preferences"></div>
<div class="ecosystems"></div>


<h2>{{ _('Promotion') }}</h2>
Expand Down

0 comments on commit 75e8816

Please sign in to comment.