Skip to content

Commit

Permalink
Close custom time range picker on update
Browse files Browse the repository at this point in the history
  • Loading branch information
Al2Klimov committed Nov 27, 2017
1 parent ceb1147 commit b224e6f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions application/forms/TimeRangePicker/CustomForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ public function createElements(array $formData)
$this->urlToForm('end');
}

public function addSubmitButton()
{
$result = parent::addSubmitButton();

$this->getElement('btn_submit')->class = 'flyover-toggle';

return $result;
}

public function onSuccess()
{
$start = $this->formToUrl('start', '00:00');
Expand Down

0 comments on commit b224e6f

Please sign in to comment.