Commit b64db6b5 authored by Erase's avatar Erase
Browse files

Update custom.js : changetoken

parent ccf7e692
......@@ -5,7 +5,7 @@ $(document).ready(function(){
$n = $('#n');
var isn = ($n.length ? true : false);
if( $('#flux').val() != ''){
if( $('#flux').val() !== ''){
$this.attr('disabled', 'disabled');
$('html, body').scrollTo($rsslk, 'fast');
$rsslk.html("<span class='ajax-loader'></span><span class=''>Génération en cours</span>");
......@@ -14,7 +14,7 @@ $(document).ready(function(){
$.ajax({
type: 'POST',
url: 'generate.php',
data: $('#contact_form').serialize()+'&isAjax=true',
data: $('#contact_form').serialize()+'&isAjax=true&t='+$('meta[name="csrf-token"]').attr('content'),
headers : {
'CsrfToken': $('meta[name="csrf-token"]').attr('content')
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment