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:
parent
46be4d4c63
commit
5341323737
@ -15,6 +15,7 @@ jQuery(function($) {
|
||||
// init modules
|
||||
//
|
||||
Forms.init();
|
||||
FormContact.init();
|
||||
|
||||
if (!_dntEnabled()) {
|
||||
GoogleAnalytics.init();
|
||||
|
@ -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')
|
||||
|
@ -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')
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user