1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 01:36:55 +01:00

fix all the forms

This commit is contained in:
Matthias Kretschmann 2016-02-10 21:14:19 +01:00
parent 46be4d4c63
commit 5341323737
4 changed files with 8 additions and 13 deletions

View File

@ -15,6 +15,7 @@ jQuery(function($) {
// init modules
//
Forms.init();
FormContact.init();
if (!_dntEnabled()) {
GoogleAnalytics.init();

View File

@ -20,12 +20,9 @@ var FormCla = (function(w, d, $) {
if ( $(this).parsley().isValid() ) {
$.ajax({
url: _config.formURL,
type: _config.formMethod,
accept: {
javascript: 'application/javascript'
},
data: _config.form.serialize(),
crossDomain: true,
method: _config.formMethod,
data: $(this).serialize(),
dataType: 'json',
beforeSend: function() {
_config.formBtn
.addClass('disabled')

View File

@ -20,12 +20,9 @@ var FormContact = (function(w, d, $) {
if ( $(this).parsley().isValid() ) {
$.ajax({
url: _config.formURL,
type: _config.formMethod,
accept: {
javascript: 'application/javascript'
},
data: _config.form.serialize(),
crossDomain: true,
method: _config.formMethod,
data: $(this).serialize(),
dataType: 'json',
beforeSend: function() {
_config.formBtn
.addClass('disabled')

View File

@ -11,7 +11,7 @@
<div class="tab-content">
<div class="tab-pane active" id="#individual" role="tabpanel">
<form id="form-cla-individuals" class="form-cla js-parsley" action="//formspree.io/{{ site.email.cla }}" method="POST" accept-charset="UTF-8">
<form id="form-cla-individuals" class="form-cla js-parsley" action="//formspree.io/{{ site.email.cla }}" method="POST">
<p class="form-group">
<input class="form-control" type="text" id="name" name="name" required>
<label class="form-label" for="name">Your Name</label>