Is there a better way than location.reload(); when having a request ajax answer from a controller to show the updated list?
If I do a OC request like this:
oc.request('.subscription-date-form', 'onRestore', {
...
And when I then do in the controller:
$this->listRefresh();
The page keeps refreshing forever, so I have to do it in the success ajax request.
location.reload(); works, but I was wondering, if there is a better (ajax?) way?