Skip to content

Commit b224e6f

Browse files
committed
Close custom time range picker on update
1 parent ceb1147 commit b224e6f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

application/forms/TimeRangePicker/CustomForm.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,15 @@ public function createElements(array $formData)
9393
$this->urlToForm('end');
9494
}
9595

96+
public function addSubmitButton()
97+
{
98+
$result = parent::addSubmitButton();
99+
100+
$this->getElement('btn_submit')->class = 'flyover-toggle';
101+
102+
return $result;
103+
}
104+
96105
public function onSuccess()
97106
{
98107
$start = $this->formToUrl('start', '00:00');

0 commit comments

Comments
 (0)