1👍
✅
You need to call location.reload inside the post call:
$.post(
'/cela/acceptarRebutjarPost/'+pkpost+"/"+action,
{'text': retVal},
function(response){ location.reload(); }
);
Source:stackexchange.com