From b224e6f7094b53fcdad3ecdb3bc9df81e0630b0f Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Mon, 27 Nov 2017 15:57:32 +0100 Subject: [PATCH] Close custom time range picker on update --- application/forms/TimeRangePicker/CustomForm.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/application/forms/TimeRangePicker/CustomForm.php b/application/forms/TimeRangePicker/CustomForm.php index 9684a10..baafe4f 100644 --- a/application/forms/TimeRangePicker/CustomForm.php +++ b/application/forms/TimeRangePicker/CustomForm.php @@ -93,6 +93,15 @@ class CustomForm extends Form $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');