Added javascript code to add a result in the background without refreshing the page
This commit is contained in:
parent
5919226dec
commit
5a79baca7d
@ -24,7 +24,7 @@ class ResultController extends Controller {
|
|||||||
|
|
||||||
$result->save();
|
$result->save();
|
||||||
|
|
||||||
if (!isset($params['redirect']) || $params['redirect'])
|
if (!isset($params['redirect']) || $params['redirect']) {
|
||||||
// redirect the user back to the home page
|
// redirect the user back to the home page
|
||||||
$routeContext = RouteContext::fromRequest($request);
|
$routeContext = RouteContext::fromRequest($request);
|
||||||
$routeParser = $routeContext->getRouteParser();
|
$routeParser = $routeContext->getRouteParser();
|
||||||
|
Loading…
Reference in New Issue
Block a user