forceReload prevents ajax submission
...instead of weird hacky workarounds forcing refreshes later.
This commit is contained in:
parent
b91915d316
commit
5b67226571
4 changed files with 1 additions and 15 deletions
|
@ -125,10 +125,6 @@ class CreateStatus(View):
|
|||
except Http404:
|
||||
pass
|
||||
|
||||
# force page reload if this was triggered from 'move' button
|
||||
if bool(request.POST.get("shelf")):
|
||||
return HttpResponse(headers={"forceReload": "true"})
|
||||
|
||||
if is_api_request(request):
|
||||
return HttpResponse()
|
||||
return redirect("/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue