1
0
mirror of https://github.com/bigchaindb/site.git synced 2025-02-14 21:10:28 +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 // init modules
// //
Forms.init(); Forms.init();
FormContact.init();
if (!_dntEnabled()) { if (!_dntEnabled()) {
GoogleAnalytics.init(); GoogleAnalytics.init();

View File

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

View File

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

View File

@ -11,7 +11,7 @@
<div class="tab-content"> <div class="tab-content">
<div class="tab-pane active" id="#individual" role="tabpanel"> <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"> <p class="form-group">
<input class="form-control" type="text" id="name" name="name" required> <input class="form-control" type="text" id="name" name="name" required>
<label class="form-label" for="name">Your Name</label> <label class="form-label" for="name">Your Name</label>