1
0
Fork 0

Merge pull request #49 from algolia/fix-form-submission

chore(form): fixed the form submission JS code
This commit is contained in:
Sylvain Utard 2015-12-23 18:26:30 +01:00
commit 6aec57ccd1
3 changed files with 5 additions and 5 deletions

View file

@ -77,7 +77,7 @@ html, body {
/* JOIN FORM
// ------------------------- */
#join-form, #join-form-2 {
.join-form {
background: #242E3A;
display: block;
width: 400px;
@ -120,7 +120,7 @@ html, body {
}
@media (min-width: 1200px) {
#join-form {
.jumbotron .join-form {
position: absolute;
top: 200px;
right: 120px;

View file

@ -16,7 +16,7 @@ layout: default
.text-center
%p Weve created the fastest, easiest way to search within documentation.
%p And best of all? Its FREE.
%form#join-form{action: '#', method: 'POST'}
%form.join-form{action: '#', method: 'POST'}
%h3 Get Started. Its FREE!
.spacer20
.input-group
@ -126,7 +126,7 @@ layout: default
%p Well get back to you within a few hours with everything you need to integrate your new search into your website.
%p Oh, and did we mention it's FREE? No commitment. No subscription. Everything is on us!
.spacer30
%form#join-form-2{action: '#', method: 'POST'}
%form.join-form{action: '#', method: 'POST'}
.input-group
%span.input-group-addon
%i.fa.fa-fw.fa-envelope-o

View file

@ -1,5 +1,5 @@
(function($) {
$('#join-form').on('submit', function() {
$('.join-form').on('submit', function() {
var $button = $(this).find('button');
var $email = $(this).find('input[name="email"]');
var $url = $(this).find('input[name="url"]');