Merge pull request #178 from zjean/develop

Respect the base href in ajax calls.
This commit is contained in:
James Cole 2016-02-11 21:24:53 +01:00
commit cd14360d62
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');
});
}