Respect the base href in ajax calls.

This commit is contained in:
zjean
2016-02-11 19:57:26 +01:00
parent 5c03e64f46
commit 74c94a60a6
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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');
});
}