From 74c94a60a670083c78c5a46be9fe3fccebbb5d72 Mon Sep 17 00:00:00 2001 From: zjean Date: Thu, 11 Feb 2016 19:57:26 +0100 Subject: [PATCH] Respect the base href in ajax calls. --- public/js/accounts/show.js | 2 +- public/js/piggy-banks/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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