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