protected function OnSuccess()
    {
        $allParams = array();
        foreach ($this->oblParams as $param)
        {
            if ($this->Value($param)) {
                $allParams[$param] = $this->Value($param);
            }
        }
        $optParams = $this->serializer->LinesToArray($this->Value('OptionalParameters'));
        foreach ($optParams as $name=>$value)
        {
            if (!isset($allParams[$name]))
            {
                $allParams[$name] = $value;
            }
        }
        $this->SetJSFieldValue('#' . $this->prefix . 'Params', $this->serializer->ArrayToLines($allParams));
        $this->SetJSFieldValue('#' . $this->prefix . 'Page', $this->page->GetID());
        $this->SetJSFieldValue('#' . $this->prefix . 'Fragment', $this->Value('Fragment'));
        $this->SetJSHtml('#' . $this->prefix . 'Url', FrontendRouter::PageUrl($this->page, $allParams, $this->Value('Fragment')));
        $this->CloseModal();
    }