Fix #1271: Call location.reload after XHR finishes (#2071)
Fix #1271: Call location.reload after XHR finishes (#2071)

location.reload was being called when the related dropdown
was hidden, even if a request initiated before to update this
value hadn't finished. This caused troubles on Firefox.
spacetourist/gitea,typeless/gitea,cumgun/gitea,typeless/gitea,dl5rcw/gitea,ethantkoenig/gitea,cez81/gitea,cez81/gitea,mjwwit/gitea,Bwko/gitea,Morlinest/gitea,go-gitea/gitea,tboerger/gitea,vCaesar/gitea,geek1011/gitea,vdbt/gitea,lunny/gitea,JonasFranzDEV/gitea,geek1011/gitea,tboerger/gitea,ethantkoenig/gitea,ethantkoenig/gogs,andreynering/gitea,CaeruleusAqua/gitea,sapk-fork/gitea,Bwko/gitea,sapk-fork/gitea,typeless/gitea,rems4e/gitea,mjwwit/gitea,go-gitea/gitea,CaeruleusAqua/gitea,tboerger/gitea,lunny/gitea,kubatyszko/gitea,ethantkoenig/gogs,Bwko/gitea,andreynering/gitea,lafriks/gitea,kjellkvinge/gitea,go-gitea/gitea,jorgesumle/gitea,cumgun/gitea,lafriks/gitea,jorgesumle/gitea,vdbt/gitea,dnmgns/gitea,kubatyszko/gitea,kubatyszko/gitea,cez81/gitea,kjellkvinge/gitea,Morlinest/gitea,lunny/gitea,dnmgns/gitea,rems4e/gitea,kjellkvinge/gitea,spacetourist/gitea,dnmgns/gitea,JonasFranzDEV/gitea,typeless/gitea,lafriks/gitea,sapk-fork/gitea,vCaesar/gitea,sapk-fork/gitea