1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 12:12:48 +01:00

Include CSRF token fix on all pages

This commit is contained in:
Hillel Coren 2017-03-21 10:34:52 +02:00
parent 7aba027896
commit a3b05acb56
4 changed files with 8 additions and 11 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -267,15 +267,6 @@ function isValidEmailAddress(emailAddress) {
return pattern.test(emailAddress);
};
$(function() {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
});
function enableHoverClick($combobox, $entityId, url) {
/*
$combobox.mouseleave(function() {

View File

@ -244,6 +244,12 @@
NINJA.formIsChanged = true;
});
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
@if (Session::has('trackEventCategory') && Session::has('trackEventAction'))
@if (Session::get('trackEventAction') === '/buy_pro_plan')
fbq('track', 'Purchase', {value: '{{ session('trackEventAmount') }}', currency: 'USD'});