This commit is contained in:
James Cole
2023-03-11 05:38:54 +01:00
parent 2a0acdbb27
commit 51ddfcdaaa

View File

@@ -74,11 +74,19 @@ $(function () {
function (start, end, label) { function (start, end, label) {
// send post. // send post.
$.post(dateRangeMeta.url, { $.ajax({
start: start.format('YYYY-MM-DD'), url: dateRangeMeta.url,
end: end.format('YYYY-MM-DD'), data: {
label: label, start: start.format('YYYY-MM-DD'),
_token: token end: end.format('YYYY-MM-DD'),
label: label,
_token: token
},
type: 'POST',
headers: {
'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content'),
'Content-Type': 'application/x-www-form-urlencoded'
}
}).done(function () { }).done(function () {
window.location.reload(true); window.location.reload(true);
}).fail(function () { }).fail(function () {