mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Fix #7188
This commit is contained in:
4
public/v1/js/ff/accounts/index.js
vendored
4
public/v1/js/ff/accounts/index.js
vendored
@@ -90,6 +90,10 @@ function stopSorting() {
|
|||||||
url: 'api/v1/accounts/' + id,
|
url: 'api/v1/accounts/' + id,
|
||||||
data: JSON.stringify({order: newOrder}),
|
data: JSON.stringify({order: newOrder}),
|
||||||
type: 'PUT',
|
type: 'PUT',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content'),
|
||||||
|
},
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
2
public/v1/js/ff/accounts/show.js
vendored
2
public/v1/js/ff/accounts/show.js
vendored
@@ -120,7 +120,7 @@ function sortStop(event, ui) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// do extra animation when done?
|
// do extra animation when done?
|
||||||
$.post('transactions/reorder', {items: submit, date: thisDate, _token: token});
|
$.post('transactions/reorder', {items: submit, date: thisDate});
|
||||||
|
|
||||||
current.animate({backgroundColor: "#5cb85c"}, 200, function () {
|
current.animate({backgroundColor: "#5cb85c"}, 200, function () {
|
||||||
$(this).animate({backgroundColor: originalBG}, 200);
|
$(this).animate({backgroundColor: originalBG}, 200);
|
||||||
|
7
public/v1/js/ff/firefly.js
vendored
7
public/v1/js/ff/firefly.js
vendored
@@ -22,9 +22,7 @@
|
|||||||
|
|
||||||
$.ajaxSetup({
|
$.ajaxSetup({
|
||||||
headers: {
|
headers: {
|
||||||
'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content'),
|
'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content')
|
||||||
'Content-Type': 'application/json'
|
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -79,8 +77,7 @@ $(function () {
|
|||||||
data: {
|
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
|
|
||||||
},
|
},
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
2
public/v1/js/ff/help.js
vendored
2
public/v1/js/ff/help.js
vendored
@@ -45,7 +45,7 @@ function showHelp(e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function enableGuidance(route, specialPage) {
|
function enableGuidance(route, specialPage) {
|
||||||
$.post('json/intro/enable/' + route + '/' + specialPage, {_token: token}).done(function (data) {
|
$.post('json/intro/enable/' + route + '/' + specialPage).done(function (data) {
|
||||||
alert(data.message);
|
alert(data.message);
|
||||||
}).fail(function () {
|
}).fail(function () {
|
||||||
console.error('Could not re-enable introduction.');
|
console.error('Could not re-enable introduction.');
|
||||||
|
Reference in New Issue
Block a user