Esempio n. 1
0
 /**
  * @secured
  */
 public function handleDoNotShowLocality($localityID, $search)
 {
     $this->localityFacade->removeUserLocality($localityID);
     $this->flashMessage('Pracoviště bylo úspěšně odstraněno z nápovědy.', 'success');
     if ($this->isAjax()) {
         $this->localities = $this->localityFacade->findLocalities($search, self::VISIBLE_LOCALITIES);
         $this->redrawControl('flashMessages');
         $this->redrawControl('localitiesList');
     } else {
         $this->redirect('this');
     }
 }
Esempio n. 2
0
 public function handleSearchLocality($term)
 {
     if ($term and mb_strlen($term) >= 3) {
         $this->sendResponse(new JsonResponse($this->localityFacade->findLocalitiesForAutocomplete($term, 10)));
     }
 }