mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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);
|
return pattern.test(emailAddress);
|
||||||
};
|
};
|
||||||
|
|
||||||
$(function() {
|
|
||||||
$.ajaxSetup({
|
|
||||||
headers: {
|
|
||||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
function enableHoverClick($combobox, $entityId, url) {
|
function enableHoverClick($combobox, $entityId, url) {
|
||||||
/*
|
/*
|
||||||
$combobox.mouseleave(function() {
|
$combobox.mouseleave(function() {
|
||||||
|
@ -244,6 +244,12 @@
|
|||||||
NINJA.formIsChanged = true;
|
NINJA.formIsChanged = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$.ajaxSetup({
|
||||||
|
headers: {
|
||||||
|
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
@if (Session::has('trackEventCategory') && Session::has('trackEventAction'))
|
@if (Session::has('trackEventCategory') && Session::has('trackEventAction'))
|
||||||
@if (Session::get('trackEventAction') === '/buy_pro_plan')
|
@if (Session::get('trackEventAction') === '/buy_pro_plan')
|
||||||
fbq('track', 'Purchase', {value: '{{ session('trackEventAmount') }}', currency: 'USD'});
|
fbq('track', 'Purchase', {value: '{{ session('trackEventAmount') }}', currency: 'USD'});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user