Skip to content

Firefly III: a personal finances manager

Respect the base href in ajax calls.

zjean74c94a60a670
diff --git a/public/js/accounts/show.js b/public/js/accounts/show.js
index fb0a5d9ea2..f913802ab3 100644
--- a/public/js/accounts/show.js
+++ b/public/js/accounts/show.js
@@ -79,7 +79,7 @@ function sortStop(event, ui) {
});
// do extra animation when done?
- $.post('/transaction/reorder', {items: submit, date: thisDate, _token: token});
+ $.post('transaction/reorder', {items: submit, date: thisDate, _token: token});
current.animate({backgroundColor: "#5cb85c"}, 200, function () {
$(this).animate({backgroundColor: originalBG}, 200);
diff --git a/public/js/piggy-banks/index.js b/public/js/piggy-banks/index.js
index 9fa00d2375..de6931be65 100644
--- a/public/js/piggy-banks/index.js
+++ b/public/js/piggy-banks/index.js
@@ -79,7 +79,7 @@ function stopSorting() {
var id = holder.data('id');
order.push(id);
});
- $.post('/piggy-banks/sort', {_token: token, order: order}).done(function () {
+ $.post('piggy-banks/sort', {_token: token, order: order}).done(function () {
$('.loadSpin').removeClass('fa fa-refresh fa-spin');
});
}
\ No newline at end of file