/** * 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; }
public function terminate() { if ($this->forceAjaxMode === FALSE) { parent::terminate(); } }