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:
parent
7aba027896
commit
a3b05acb56
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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() {
|
||||
|
@ -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'});
|
||||
|
Loading…
Reference in New Issue
Block a user