Beispiel #1
0
 /**
  * If modal is requested, send flash message and close modal
  * @return bool
  * @throws \Nette\Application\AbortException
  */
 public function close()
 {
     if ($this->isRequested()) {
         $this->copyMessagesToPayload();
         $this->presenter->terminate();
         return true;
     }
     return false;
 }
Beispiel #2
0
 public function terminate()
 {
     if ($this->forceAjaxMode === FALSE) {
         parent::terminate();
     }
 }