mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 18:02:34 +00:00
Fix #7186
This commit is contained in:
10
public/v1/js/ff/firefly.js
vendored
10
public/v1/js/ff/firefly.js
vendored
@@ -74,11 +74,19 @@ $(function () {
|
|||||||
function (start, end, label) {
|
function (start, end, label) {
|
||||||
|
|
||||||
// send post.
|
// send post.
|
||||||
$.post(dateRangeMeta.url, {
|
$.ajax({
|
||||||
|
url: dateRangeMeta.url,
|
||||||
|
data: {
|
||||||
start: start.format('YYYY-MM-DD'),
|
start: start.format('YYYY-MM-DD'),
|
||||||
end: end.format('YYYY-MM-DD'),
|
end: end.format('YYYY-MM-DD'),
|
||||||
label: label,
|
label: label,
|
||||||
_token: token
|
_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 () {
|
||||||
|
|||||||
Reference in New Issue
Block a user