config/module(dis|en)able: Explicitly reload the window
Redirecting to `left#!right` by HTTP doesn't work and is the wrong solution anyway.
This commit is contained in:
parent
228e503131
commit
a72d24a672
|
@ -184,7 +184,9 @@ class ConfigController extends Controller
|
|||
$form->onSuccess();
|
||||
|
||||
if ($module->hasJs()) {
|
||||
$this->redirectHttp('config/modules');
|
||||
$this->getResponse()
|
||||
->setReloadWindow(true)
|
||||
->sendResponse();
|
||||
} else {
|
||||
if ($module->hasCss()) {
|
||||
$this->reloadCss();
|
||||
|
@ -221,7 +223,9 @@ class ConfigController extends Controller
|
|||
$form->onSuccess();
|
||||
|
||||
if ($module->hasJs()) {
|
||||
$this->redirectHttp('config/modules');
|
||||
$this->getResponse()
|
||||
->setReloadWindow(true)
|
||||
->sendResponse();
|
||||
} else {
|
||||
if ($module->hasCss()) {
|
||||
$this->reloadCss();
|
||||
|
|
Loading…
Reference in New Issue